How to target ldc compiler only in dub

mw mingwu at gmail.com
Wed May 27 01:06:48 UTC 2020


On Wednesday, 27 May 2020 at 00:54:45 UTC, data pulverizer wrote:
> On Wednesday, 27 May 2020 at 00:52:55 UTC, mw wrote:
>> On Tuesday, 26 May 2020 at 22:28:14 UTC, data pulverizer wrote:
>>> I am trying to build a package to target LDC compiler only. I
>>
>> set env:
>>
>> LDC=<your ldc install root>
>> DUB = $(LDC)/bin/dub
>>
>> then, run this new dub:
>>
>> $(DUB) build
>
> Thanks. Building with `dub run --compiler=ldc2` works so I 
> think I'll do that instead.

And you can use option

dub -v

to verify it's calling the correct compiler cmd.


More information about the Digitalmars-d-learn mailing list