Skip to content

Commit 3369ce2

Browse files
the-horojpakkane
authored andcommitted
install.ps1: Use 64 bit D executables
Signed-off-by: Andrei Horodniceanu <a.horodniceanu@proton.me>
1 parent c45d8b2 commit 3369ce2

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

win32/install.ps1

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,18 @@ if ($Boost) {
4040

4141
if ($DMD) {
4242
echo " - Installing DMD"
43-
$dmd_bin = Join-Path $ScriptDir "dmd2\windows\bin"
43+
if ($Arch -eq "x64") {
44+
$dmd_bin = Join-Path $ScriptDir "dmd2\windows\bin64"
45+
$dmdArch = "x86_64"
46+
} else {
47+
$dmd_bin = Join-Path $ScriptDir "dmd2\windows\bin"
48+
$dmdArch = "x86"
49+
}
4450
$env:Path = $env:Path + ";" + $dmd_bin
4551

4652
& dmd.exe --version
4753

48-
if ($Arch -eq "x64") { $dmdArch = "x86_64" } else { $dmdArch = "x86_mscoff" }
54+
# The --arch switch is required, see: https://github.com/dlang/dub/pull/2962
4955
& dub fetch urld@3.0.0
5056
& dub build urld --compiler=dmd --arch=$dmdArch
5157
& dub fetch dubtestproject@1.2.0

0 commit comments

Comments
 (0)