Commit cac63d1d authored by Daniel Teske's avatar Daniel Teske

GccToolChain: Support -D foo

Change-Id: I733e7d308720b23c1cf4226335cc96ad6d89feb9
Task-number: QTCREATORBUG-14792
Reviewed-by: default avatarTobias Hunger <tobias.hunger@theqtcompany.com>
parent 13c2c406
......@@ -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")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment