Building Win32 application via dub

Mike Parker aldacron at
Wed Apr 29 10:43:05 UTC 2020

On Wednesday, 29 April 2020 at 10:27:35 UTC, Sam E. wrote:

> To be honest, I haven't yet found the way to switch between 
> -m32 and -m64 (or other) via dub :)

Pass the -a flag on the dub command line with the appropriate 

For -m32: -ax86
For -m32mscoff: -ax86_mscoff
For -m64: -ax86_64

Note that on 64-bit Windows, recent versions of dub will be 
calling the compiler with -m64 by default.

More information about the Digitalmars-d-learn mailing list