Wrong module initialization order when building with Dub on Windows?
Nicholas Wilson
iamthewilsonator at hotmail.com
Tue Oct 2 04:30:55 UTC 2018
On Tuesday, 2 October 2018 at 01:57:00 UTC, Vladimir Panteleev
wrote:
> Ran into this today, don't have time to dig in now but maybe
> someone ran into this too.
>
> Steps to reproduce:
>
> - git clone https://github.com/CyberShadow/ae
> - cd ae/demo/inputtiming
> - (download/unpack
> https://www.libsdl.org/release/SDL2-2.0.8-win32-x86.zip or
> https://www.libsdl.org/release/SDL2-2.0.8-win32-x64.zip to
> current directory)
> - dub
>
> On Windows, I get a range violation (in ae.sys.log) which
> indicates that Runtime.args has length 0, which should never
> happen.
>
> This doesn't happen if I build as usual with rdmd, or on Linux
> (either rdmd or Dub).
I'd take a look at what arguments are passed to DMD with rdmd vs.
dub.
Maybe to module order is different?
More information about the Digitalmars-d-learn
mailing list