https://dlang.org/spec/pragma.html#linkerDirective
example from my stuff: import arsd.minigui; pragma(linkerDirective, "/subsystem:windows"); pragma(linkerDirective, "/entry:mainCRTStartup");that works with dmd -m32mscoff. need a wmainCRTStartup for ldc, no entry at all for dmd -m32.
Maybe I should make this a tempalte in my library.......