Compiler switches in source code
Daniel N
no at public.email
Sun Feb 14 08:41:11 UTC 2021
On Sunday, 14 February 2021 at 07:56:43 UTC, 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?
You are in luck, dmd does provide support for this...
https://dlang.org/spec/pragma.html#linkerDirective
... and it's wonderful, I wish all compilers followed suit.
More information about the Digitalmars-d
mailing list