forked from qt-creator/qt-creator
GccToolChain: Support -D foo
Change-Id: I733e7d308720b23c1cf4226335cc96ad6d89feb9 Task-number: QTCREATORBUG-14792 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
@@ -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")
|
||||||
|
Reference in New Issue
Block a user