dmd -unittest -main -run: undefined reference to `_D1c12__ModuleInfoZ'

Seb seb at wilzba.ch
Wed May 1 23:19:58 UTC 2019


On Wednesday, 1 May 2019 at 22:46:34 UTC, kdevel wrote:
> On Wednesday, 1 May 2019 at 22:35:12 UTC, ag0aep6g wrote:
>> On 02.05.19 00:25, kdevel wrote:
>>> dmd -unittest -main -run package.d c/package.d
>>
>> That doesn't compile c/package.d. Everything after `-run 
>> package.d` is interpreted as an argument to the compiled 
>> program.
>
> Thanks for the information. Wouldn't it be better, if 
> everything directly
> after the `-run` would be taken as argument to the programm? In 
> this case
>
>    dmd -unittest -main -run package.d
>
> would immediately fail due to missing source.

Would be, but would also be a breaking change.
In the past it has been discussed to use e.g. `--` as a 
separator, but that PR was rejected because it could only be done 
in a useful way with breaking changes :/


More information about the Digitalmars-d-learn mailing list