Skip to content

Commit 52e39d5

Browse files
author
Guillaume Piolat
committed
Add new flag to dplug-build: --profile is a shortcut for -b release-debug --combined
1 parent c7c0375 commit 52e39d5

File tree

1 file changed

+9
-1
lines changed
  • tools/dplug-build/source

1 file changed

+9
-1
lines changed

tools/dplug-build/source/main.d

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ void usage()
9696
flag("--compiler-x86_64", " Force compiler for x86_64 architecture", null, "same as --compiler");
9797
flag("--combined", "Combined build", null, null);
9898
flag("--final", "Release. Shortcut for --combined -b release-nobounds", null, null);
99+
flag("--profile", "Debug Info. Shortcut for --combined -b release-debug", null, null);
99100
flag("-f --force", "Force rebuild", null, null);
100101
flag("-q --quiet", "Quieter output", null, null);
101102
flag("-v --verbose", "Verbose output", null, null);
@@ -179,7 +180,14 @@ int main(string[] args)
179180
for (int i = 1; i < args.length; )
180181
{
181182
string arg = args[i];
182-
if (arg == "--final")
183+
if (arg == "--profile")
184+
{
185+
finalFlag = true;
186+
args = args[0..i] ~ ["--combined",
187+
"-b",
188+
"release-debug"] ~ args[i+1..$];
189+
}
190+
else if (arg == "--final")
183191
{
184192
finalFlag = true;
185193
args = args[0..i] ~ ["--combined",

0 commit comments

Comments
 (0)