diff --git a/source/dub/commandline.d b/source/dub/commandline.d index 43cf2ab..1f92121 100644 --- a/source/dub/commandline.d +++ b/source/dub/commandline.d @@ -310,7 +310,7 @@ args.getopt("b|build", &m_build_type, [ "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, unittest, profile, docs, ddox, cov, unittest-cov and custom types" + " debug (default), plain, release, release-nobounds, unittest, profile, docs, ddox, cov, unittest-cov and custom types" ]); args.getopt("c|config", &m_build_config, [ "Builds the specified configuration. Configurations can be defined in package.json" diff --git a/source/dub/package_.d b/source/dub/package_.d index e6595cd..5b50a12 100644 --- a/source/dub/package_.d +++ b/source/dub/package_.d @@ -218,6 +218,7 @@ case "plain": break; case "debug": settings.addOptions(debugMode, debugInfo); break; case "release": settings.addOptions(releaseMode, optimize, inline); break; + case "release-nobounds": settings.addOptions(releaseMode, optimize, inline, noBoundsCheck); break; case "unittest": settings.addOptions(unittests, debugMode, debugInfo); break; case "docs": settings.addOptions(syntaxOnly); settings.addDFlags("-c", "-Dddocs"); break; case "ddox": settings.addOptions(syntaxOnly); settings.addDFlags("-c", "-Df__dummy.html", "-Xfdocs.json"); break;