diff options
-rw-r--r-- | src/plugins/projectexplorer/gcctoolchain.cpp | 3 |
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") |