Is there a way to use x86 and x86_mscoff with dub simultaneously.
Mike Parker via Digitalmars-d
digitalmars-d at puremagic.com
Tue Jul 25 08:18:04 PDT 2017
On Tuesday, 25 July 2017 at 14:17:54 UTC, ciechowoj wrote:
> Currently dub reports following message when the -m32mscoff
> flag is specified in dub.json.
>
>
> ```
> -m32mscoff: Use --arch=x86/--arch=x86_64/--arch=x86_mscoff to
> specify the target architecture, e.g. 'dub build --arch=x86_64'
> architecture explicitly or at least provide a meaningful
> message to the user that they should use `--arch=x86_mscoff` ?
What's wrong with the current error message? Doesn't it do that?
>
> Or a way to force dub to use VS linker instead of OPTLINK for
> x86 case?
> Or a way to override the default architecture?
That's precisely what --arch (or simply -a) is for. But you can
avoid passing it explicitly by setting the $DUB_ARCH environment
variable (as per the dub documentation).
More information about the Digitalmars-d
mailing list