Compiler switches in source code
newshound2 at digitalmars.com
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
https://dlang.org/spec/pragma.html#linkerDirective but people generally prefer
to do those with their build system.
More information about the Digitalmars-d