summaryrefslogtreecommitdiffstats
path: root/buildtool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'buildtool.cpp')
-rw-r--r--buildtool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildtool.cpp b/buildtool.cpp
index a43bb0192..ae3d40106 100644
--- a/buildtool.cpp
+++ b/buildtool.cpp
@@ -6920,7 +6920,6 @@ public:
String dest = parent.eval(destOpt, ".");
String ccflags = parent.eval(flagsOpt, "");
String cxxflags = parent.eval(cxxflagsOpt, "");
- String flags = ccflags;
String defines = parent.eval(definesOpt, "");
String includes = parent.eval(includesOpt, "");
bool continueOnError = parent.evalBool(continueOnErrorOpt, true);
@@ -7027,6 +7026,7 @@ public:
//## Select command
String sfx = dep.suffix;
String command = ccCommand;
+ String flags = ccflags;
if (sfx == "cpp" || sfx == "cxx" || sfx == "c++" ||
sfx == "cc" || sfx == "CC")
{