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.