Compiler Specific dub Dependencies

Jack Stouffer via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Mar 23 13:30:04 PDT 2016


Is there any way in dub to specify that a module should only be 
linked and compiled for DMD and not for LDC?

I am using the Economic Modeling containers library, and because 
it uses std.experimental.allocator, it can't be used with LDC 
through dub. I have coded in such a way with static if's that LDC 
will still compile without it, but dub will try to compile it 
anyway because it's in the dependencies JSON dictionary.


More information about the Digitalmars-d-learn mailing list