Resurrecting a 2017 thread: dub and dmd as dub dependencies

FeepingCreature feepingcreature at gmail.com
Mon Aug 5 07:22:33 UTC 2019


On Tuesday, 8 August 2017 at 09:21:54 UTC, Moritz Maxeiner wrote:
> On Tuesday, 8 August 2017 at 09:17:02 UTC, data pulverizer 
> wrote:
>> Hi,
>>
>> I would like to know how to specify dmd or ldc compiler and 
>> version in a json dub file.
>>
>> Thanks in advance.
>
> You can't [1]. You can specify the compiler to use only on the 
> dub command line via `--compiler=`.
>
> [1] https://code.dlang.org/package-format?lang=json

Any reason you couldn't, say, specify the compiler version in the 
dub.sdl, and dub would build it (and use it) using the regular 
.dub/packages mechanism?

Same should work for dub itself. Treat the current dub/dmd as a 
bootstrap compiler instead of the main compiler.


More information about the Digitalmars-d mailing list