GccToolChain: Support -D foo

Change-Id: I733e7d308720b23c1cf4226335cc96ad6d89feb9
Task-number: QTCREATORBUG-14792
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
Daniel Teske
2015-07-28 12:22:23 +02:00
parent 13c2c40636
commit cac63d1dd0

View File

@@ -394,7 +394,8 @@ QByteArray GccToolChain::predefinedMacros(const QStringList &cxxflags) const
if (a == QLatin1String("-arch")) { if (a == QLatin1String("-arch")) {
if (++iArg < allCxxflags.length() && !arguments.contains(a)) if (++iArg < allCxxflags.length() && !arguments.contains(a))
arguments << a << allCxxflags.at(iArg); 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()) if (++iArg < allCxxflags.length())
arguments << a << allCxxflags.at(iArg); arguments << a << allCxxflags.at(iArg);
} else if (a == QLatin1String("-m128bit-long-double") || a == QLatin1String("-m32") } else if (a == QLatin1String("-m128bit-long-double") || a == QLatin1String("-m32")