Windows: Link with /MT or /MTd

Kagamin via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Mon Apr 6 09:08:40 PDT 2015


On Monday, 6 April 2015 at 15:38:57 UTC, Johan Engelen wrote:
> ldc2 test.d           --> links with phobos2-ldc.lib
> ldc2 -d-debug test.d  --> links with phobos2-ldc.lib
> ldc2 -g test.d        --> links with phobos2-ldc-debug.lib

I'd say, that's expected: -debug is for source-level debugging, 
that's why it's not reflected in the kind of generated code; -g 
is codegen-level debugging, that's why it links with 
appropriately compiled runtime.


More information about the digitalmars-d-ldc mailing list