From caf72d6052c78b359c5d6a9cf5fad663f18df26b Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Tue, 26 Sep 2017 06:48:56 -0700 Subject: [PATCH] Allow -dce flag on command-line --- tools/CommandLineTools.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/CommandLineTools.hx b/tools/CommandLineTools.hx index 65d56d3ae..f01f70a35 100644 --- a/tools/CommandLineTools.hx +++ b/tools/CommandLineTools.hx @@ -2351,11 +2351,11 @@ class CommandLineTools { } else if (argument.substr (0, 1) == "-") { - if (argument.substr (1, 1) == "-") { + if (argument == "-dce" || argument.substr (1, 1) == "-") { overrides.haxeflags.push (argument); - if (argument == "--remap" || argument == "--connect") { + if (argument == "--remap" || argument == "--connect" || argument == "-dce") { catchHaxeFlag = true;