Skip to content

Commit

Permalink
Add "release-debug" default build type. See #747.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-ludwig committed Jan 17, 2016
1 parent ea309f9 commit fe02126
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion source/dub/commandline.d
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ abstract class PackageBuildCommand : Command {
args.getopt("b|build", &m_buildType, [
"Specifies the type of build to perform. Note that setting the DFLAGS environment variable will override the build type with custom flags.",
"Possible names:",
" debug (default), plain, release, release-nobounds, unittest, profile, profile-gc, docs, ddox, cov, unittest-cov and custom types"
" debug (default), plain, release, release-debug, release-nobounds, unittest, profile, profile-gc, docs, ddox, cov, unittest-cov and custom types"
]);
args.getopt("c|config", &m_buildConfig, [
"Builds the specified configuration. Configurations can be defined in dub.json"
Expand Down
1 change: 1 addition & 0 deletions source/dub/package_.d
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ class Package {
case "plain": break;
case "debug": settings.addOptions(debugMode, debugInfo); break;
case "release": settings.addOptions(releaseMode, optimize, inline); break;
case "release-debug": settings.addOptions(releaseMode, optimize, inline, debugInfo); break;
case "release-nobounds": settings.addOptions(releaseMode, optimize, inline, noBoundsCheck); break;
case "unittest": settings.addOptions(unittests, debugMode, debugInfo); break;
case "docs": settings.addOptions(syntaxOnly, _docs); break;
Expand Down

0 comments on commit fe02126

Please sign in to comment.