Compiler switches in source code

Walter Bright newshound2 at digitalmars.com
Sun Feb 14 22:26:54 UTC 2021


On 2/14/2021 8:58 AM, Vinod K Chandran wrote:
> So I can write like this --
> pragma(linkerDirective, "L/SUBSYSTEM:WINDOWS")
> Am i right ?

yes

> If so, i would like to know more about like which compiler switches 
> are allowed to use with pragmas.

https://dlang.org/spec/pragma.html

The linkerDirective, however, is for linker switches.


More information about the Digitalmars-d mailing list