From 3369ce21217028f325bbf9bee8b6a11606259ff8 Mon Sep 17 00:00:00 2001 From: Andrei Horodniceanu Date: Sat, 24 Aug 2024 07:04:03 +0300 Subject: [PATCH] install.ps1: Use 64 bit D executables Signed-off-by: Andrei Horodniceanu --- win32/install.ps1 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/win32/install.ps1 b/win32/install.ps1 index 8ab4646..8f3faad 100644 --- a/win32/install.ps1 +++ b/win32/install.ps1 @@ -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