[gsoc] DUB - Ideas

Atila Neves atila.neves at gmail.com
Fri Mar 1 15:49:18 UTC 2019


On Friday, 1 March 2019 at 14:28:54 UTC, John Colvin wrote:
> On Friday, 1 March 2019 at 14:16:17 UTC, Atila Neves wrote:
>> 5. `dub describe` actually working, or, even better, an easy 
>> to use API to query the build. Did you know that the output of 
>> `dub describe -c unittest` doesn't have the string "-unittest" 
>> anywhere, much less in "dflags"? Now you do.
>
> That is actually to some extent expected behaviour. -c unittest 
> only refers to the unittest configuration, not the unittest 
> *build*.
>
> dub describe -c unittest -b unittest
>
> will give you "unittests" under targets[0].buildSettings.options
>
> Of course those options still need to be converted in to the 
> relevant compiler flags.

Bad example from me. Replace "-unittest" with "-g -debug" for the 
debug build, which is the default.

Why anyone would want to use the "unittest" configuration (which 
is treated differently by dub) in a non-unittest build is beyond 
me.


More information about the Digitalmars-d mailing list