Including C sources in a DUB project

jmh530 john.michael.hall at gmail.com
Tue May 10 21:52:35 UTC 2022


On Tuesday, 10 May 2022 at 20:50:12 UTC, Alexander Zhirov wrote:
> On Tuesday, 10 May 2022 at 19:13:21 UTC, Dennis wrote:
>> It has an example directory: 
>> https://github.com/dlang/dub/tree/master/examples
>
> And if there are two compilers in the system - `dmd` and `ldc`, 
> which compiler chooses `dub.json`? And how do I specify the 
> specific compiler I want?

Following the command line documentation [1], you can use the 
--compiler option to select which to use. You can make the 
dub.json do different things depending on the target and/or 
compiler, but the default works fine regardless if you're doing 
something simple.

https://dub.pm/commandline.html


More information about the Digitalmars-d-learn mailing list