Commit b67157fb authored by Tobias Hunger's avatar Tobias Hunger

Gcc: Fix -sysroot option: It is --sysroot

It is indeed -isysroot and -arch, so leave those alone.

Change-Id: I68d44cc1037d6be9be0748abe8fbfa677cce65d5
Reviewed-by: default avatarFawzi Mohamed <fawzi.mohamed@digia.com>
parent d190704b
......@@ -374,7 +374,7 @@ QByteArray GccToolChain::predefinedMacros(const QStringList &cxxflags) const
QStringList arguments = gccPredefinedMacrosOptions();
for (int iArg = 0; iArg < allCxxflags.length(); ++iArg) {
const QString &a = allCxxflags.at(iArg);
if (a == QLatin1String("-arch") || a == QLatin1String("-sysroot")
if (a == QLatin1String("-arch") || a == QLatin1String("--sysroot")
|| a == QLatin1String("-isysroot")) {
if (++iArg < allCxxflags.length())
arguments << a << allCxxflags.at(iArg);
......
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