Skip to content

Instantly share code, notes, and snippets.

@Philosoph228
Created December 24, 2023 15:13
Show Gist options
  • Save Philosoph228/b6f3ea7ce76ebf7a6b63be98b4105989 to your computer and use it in GitHub Desktop.
Save Philosoph228/b6f3ea7ce76ebf7a6b63be98b4105989 to your computer and use it in GitHub Desktop.
Set DMD environment in PowerShell
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"
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