Including C sources in a DUB project
Dennis
dkorpel at gmail.com
Tue May 10 22:12:52 UTC 2022
On Tuesday, 10 May 2022 at 20:50:12 UTC, Alexander Zhirov wrote:
> And if there are two compilers in the system - `dmd` and `ldc`,
> which compiler chooses `dub.json`?
It depends on whether your DMD or LDC installation comes first in
your PATH environment variable. Both ship with a `dub` executable
that uses their compiler as default.
> And how do I specify the specific compiler I want?
On the command line you can use the `--compiler=dmd` flag. You
can't specify this in the dub.json, since your project is
supposed to be compiler agnostic.
More information about the Digitalmars-d-learn
mailing list