DUB doesn't seem to respect my config, am I doing something wrong?

rempas rempas at tutanota.com
Sun May 23 07:09:12 UTC 2021


On Sunday, 23 May 2021 at 00:36:48 UTC, Jordan Wilson wrote:
> On Saturday, 22 May 2021 at 20:28:56 UTC, rempas wrote:
>> [...]
>
> Ignoring the "dubug" typo...normally, I think you pass compiler 
> values directly to dub via the ```--compiler``` flag. For 
> example:
> ```shell
> dub --config=development --compiler=ldc2
> ```
>
> Note: you can also pass "debug" and "release" builds (among 
> others), like so:
> ```shell
> dub -b "debug" --compiler=ldc2
> ```
>
> Passing in the compiler allows any end user building your code 
> to use whatever compiler they want. Otherwise, something like 
> ```toolchainRequirements dmd="no" ldc=">=1.21.0"``` may achieve 
> what you want.
>
> Thanks,
>
> Jordan

Hi, and thanks a lot for your time. Yes I fixed the typo. Passing 
values directly works like I said but I'm wondering why choosing 
a config won't effect things like the compiler or the build type. 
Anyway, have a nice day my friend!


More information about the Digitalmars-d-learn mailing list