Skip to content

Commit

Permalink
install.ps1: Use 64 bit D executables
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Horodniceanu <a.horodniceanu@proton.me>
  • Loading branch information
the-horo authored and jpakkane committed Aug 29, 2024
1 parent c45d8b2 commit 3369ce2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions win32/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,18 @@ if ($Boost) {

if ($DMD) {
echo " - Installing DMD"
$dmd_bin = Join-Path $ScriptDir "dmd2\windows\bin"
if ($Arch -eq "x64") {
$dmd_bin = Join-Path $ScriptDir "dmd2\windows\bin64"
$dmdArch = "x86_64"
} else {
$dmd_bin = Join-Path $ScriptDir "dmd2\windows\bin"
$dmdArch = "x86"
}
$env:Path = $env:Path + ";" + $dmd_bin

& dmd.exe --version

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

0 comments on commit 3369ce2

Please sign in to comment.