summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Teske <daniel.teske@theqtcompany.com>2015-07-28 12:22:23 +0200
committerDaniel Teske <daniel.teske@theqtcompany.com>2015-08-31 10:23:37 +0000
commitcac63d1dd00c6c9d15e1add3107562228895ac9e (patch)
tree2f1a6e5f0b13e4f63c7ed6610500193d33847931
parent13c2c406369d2a8b7def772bff6121203a41103a (diff)
downloadqt-creator-cac63d1dd00c6c9d15e1add3107562228895ac9e.tar.gz
GccToolChain: Support -D foo
Change-Id: I733e7d308720b23c1cf4226335cc96ad6d89feb9 Task-number: QTCREATORBUG-14792 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
-rw-r--r--src/plugins/projectexplorer/gcctoolchain.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/gcctoolchain.cpp b/src/plugins/projectexplorer/gcctoolchain.cpp
index 1ad40a8702..989332fdad 100644
--- a/src/plugins/projectexplorer/gcctoolchain.cpp
+++ b/src/plugins/projectexplorer/gcctoolchain.cpp
@@ -394,7 +394,8 @@ QByteArray GccToolChain::predefinedMacros(const QStringList &cxxflags) const
if (a == QLatin1String("-arch")) {
if (++iArg < allCxxflags.length() && !arguments.contains(a))
arguments << a << allCxxflags.at(iArg);
- } else if (a == QLatin1String("--sysroot") || a == QLatin1String("-isysroot")) {
+ } else if (a == QLatin1String("--sysroot") || a == QLatin1String("-isysroot")
+ || a == QLatin1String("-D") ||a == QLatin1String("-U")) {
if (++iArg < allCxxflags.length())
arguments << a << allCxxflags.at(iArg);
} else if (a == QLatin1String("-m128bit-long-double") || a == QLatin1String("-m32")