On Thu, 24 Jul 2014 15:25:38 GMT, Sönke Ludwig wrote:

On Thu, 24 Jul 2014 05:14:05 GMT, Mark Isaacson wrote:

How can I get dub to automatically detect that I should be building for x86_64? Right now I need to pass --arch=x86_64 each time.

I am running dub from a 64-bit cygwin terminal running on 64-bit Windows.

This depends on the compiler. By default, no flags are passed to the compiler and whatever it chooses to compile for is used by DUB. But it looks like adding a global configuration to override the default would be a good idea. I've added a ticket: #383

Thanks! Should be noted that x86_64 Windows is not necessarily a great default option even on that platform; the reason is that you need the MS Visual Studio linker for it to work.

One more note: I tried adding only configurations for which the platform was x8664 in the hopes that doing so would mean that DUB would deduce that that was the only potentially valid option. Instead it went with the "debug" configuration. It might be a good idea on Windows to have DUB pick the first of *either* x86 or x8664 unless one is explicitly specified.