On Wed, 23 Jul 2014 09:53:09 GMT, Sönke Ludwig wrote:
...

Is there a field for specifying the compiler to use in dub.json? I'd basically like to have separate configurations for compiling with dmd and gdc (because one is 64bit and the other 32) and I was wondering if this option is available. For now I'll just batch file it, but I was curious as I can't find anything.

This is something that is only controllable from the outside. So having a batch file that runs something like dub build --arch=x86_64 --compiler=GDC would be about the only solution so far.

If this turns out to be a more frequent need, we could think about adding a new feature for that - either something in dub.json, or maybe in a separate dub-build-list.json (or similar) file.

Hi Sonke,

I'm finding using gdc useful to avoid bugs in the dmd compiler, why do you have compiler agnostic config options but no way to define a specific compiler?

Would be great to have different configs set up for each compiler in my dub.json file.

Does this exist now?

Cheers,
Rory