dub doesn't work with dmd 1:2.082.0-1.0?

rmc rjmcguire at gmail.com
Mon Sep 17 06:24:10 UTC 2018


On Friday, 14 September 2018 at 15:42:05 UTC, Jesse Phillips 
wrote:
> On Friday, 14 September 2018 at 05:41:41 UTC, rmc wrote:
>
>> I do wonder if `dmd` by itself on the command line works. 
>> Could it be some sort of 32 bit bug in the latest release of 
>> dmd? Relating to argc/argv.
>
>
> "source/dub/compilers/compiler.d(127)"
>
> That doesn't look like DMD source code.

Yip, that link is to where dub uses dmd (showing the specific 
error) and the other link is to a line in dmd that throws the 
initial error. The mars.d file is part of dmd.

The line in dmd appears to be a safety check that makes sure 
there is at least one argument in argv.

To me it seems really weird that dmd would be able to reach the 
trymain function with `argc < 1 || !argv` or with argc >= 1 and 
one of the arguments being null.

R


More information about the Digitalmars-d-learn mailing list