Created
December 24, 2023 15:13
-
-
Save Philosoph228/b6f3ea7ce76ebf7a6b63be98b4105989 to your computer and use it in GitHub Desktop.
Set DMD environment in PowerShell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Write-Host "" | |
Write-Host "Setting up 32-bit environment for using DMD 2 from $PSScriptRoot\dmd2\windows\bin." | |
$env:PATH = "$PSScriptRoot\dmd2\windows\bin;$env:PATH" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Write-Host "" | |
Write-Host "Setting up 64-bit environment for using DMD 2 from $PSScriptRoot\dmd2\windows\bin." | |
Write-Host "" | |
Write-Host "dmd must still be called with -m64 in order to generate 64-bit code." | |
Write-Host "This command prompt adds the path of extra 64-bit DLLs so generated programs" | |
Write-Host "which use the extra DLLs (notably libcurl) can be executed." | |
$env:PATH = "$PSScriptRoot\dmd2\windows\bin;$env:PATH" | |
$env:PATH = "$PSScriptRoot\dmd2\windows\bin64;$env:PATH" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment