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

Guillaume Piolat first.last at gmail.com
Sun May 23 09:45:06 UTC 2021


On Saturday, 22 May 2021 at 20:28:56 UTC, rempas wrote:
>
> I'm compiling using `dub --config=development` and I'm getting 
> the following line: `Performing "debug" build using 
> /usr/bin/dmd for x86_64`. The same exactly happens when I'm 
> trying to do the release config. If I disable the `targetType` 
> option, it seems that it's creating a library and I can also 
> manually change the compiler and the build-type so I don't know 
> what's going on....

Hello,

DUB has two separate concepts:

     - buildTypes: default ones are debug, release, release-debug, 
release-nobounds
       They
       You can define custom buildTypes.
       Selected with -b
       https://dub.pm/package-format-json.html#build-types
       By default, "debug" build type.


     - configurations are more often used to define software 
options
       You can define custom configurations.
       Selected with -c
       By default the first one in your file is taken, else it's a 
default configuration.

People use configurations to define example programs or platform 
builds (probably becase buildTypes are limited), but they are 
primarily intended for enabling or disabling features in software.


More information about the Digitalmars-d-learn mailing list