From cac63d1dd00c6c9d15e1add3107562228895ac9e Mon Sep 17 00:00:00 2001 From: Daniel Teske Date: Tue, 28 Jul 2015 12:22:23 +0200 Subject: [PATCH] GccToolChain: Support -D foo Change-Id: I733e7d308720b23c1cf4226335cc96ad6d89feb9 Task-number: QTCREATORBUG-14792 Reviewed-by: Tobias Hunger --- src/plugins/projectexplorer/gcctoolchain.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/projectexplorer/gcctoolchain.cpp b/src/plugins/projectexplorer/gcctoolchain.cpp index 1ad40a8702c..989332fdadf 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")