Compiler switches in source code

Walter Bright newshound2 at
Sun Feb 14 08:59:32 UTC 2021

On 2/13/2021 11:56 PM, Vinod K Chandran wrote:
> Why Compiler Writers Accept instructions for the compiler as compiler switches 
> rather than through the source code. What's wrong with providing options like 
> "L/SUBSYSTEM:WINDOWS" through the source code?

There are a couple pragmas that do it but people generally prefer 
to do those with their build system.

More information about the Digitalmars-d mailing list