Build release and debug with dub

Puming via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Apr 6 19:08:20 PDT 2016


On Thursday, 7 April 2016 at 02:07:18 UTC, Puming wrote:
> On Wednesday, 6 April 2016 at 19:49:38 UTC, Suliman wrote:
>> [...]
>
> In the document it says you can not specify targetName in 
> buildType. I wonder why is that?
>
> But you can use two configurations like this(assumming your 
> project is named "App"):
>
> ```
> configuration "App" {
>     targetType "executable"
>     targetName "hello"
typo: "hello" -> "App"
> }
> configuration "AppDebug" {
>     targetType "executable"
>     targetName "AppDebug"
> }
> ```
>
> and use `dub -c AppDebug` for AppDebug.exe, and `dub -b 
> release` for App.exe



More information about the Digitalmars-d-learn mailing list