Building from source on Windows

frame frame86 at
Sun Jan 30 10:03:28 UTC 2022

On Sunday, 30 January 2022 at 04:33:32 UTC, forkit wrote:

> in file:
> c:\source\D\tools\win32.mak
> it contains this line:
> DFLAGS=-O -release -m$(MODEL)
> but -m is not a valid option in dmd??

Do you realize that it isn't just `-m` but `-mXXXX` because 
`${MODEL}` stands for a variable which should be set? ;)

> C:\source\D\tools>make -f win32.mak "ROOT=generated\windows\64" 
> "MODEL=" generated\windows\64\dman.exe

If you ignore this and mix up 32 and 64bit / MS-COFF you have not 
to wonder why something will not work as expected.

More information about the Digitalmars-d mailing list