Cross compiling for windows from linux

Adam D. Ruppe destructionator at gmail.com
Thu Jan 21 15:31:04 UTC 2021


On Thursday, 21 January 2021 at 13:39:21 UTC, deadalnix wrote:
> Ok I'll figure it out. Thanks.

The beauty of dmd (and ldc's package too) from zip is that you 
don't have to install it.

Just run it directly from the unzipped location.

On my linux box, I have a little helper script called dmdw that 
just:

#!/bin/bash

exec wine /home/me/d/windows/dmd2/windows/bin/dmd.exe -m32mscoff 
$*


So then I unzip dmd in ~/d/windows and boom it just works to 
`dmdw whatever.d` from there on.


More information about the Digitalmars-d mailing list