Commit 95436113 authored by Fawzi Mohamed's avatar Fawzi Mohamed

gcctoolchain: improve architecture detection on mac

Change-Id: If6346fdf7d159891513764ada6fb4c1fcc9c4a63
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent 5ff8bac3
......@@ -372,8 +372,13 @@ QByteArray GccToolChain::predefinedMacros(const QStringList &cxxflags) const
Environment env = Environment::systemEnvironment();
addToEnvironment(env);
QStringList arguments = gccPredefinedMacrosOptions();
foreach (const QString &a, allCxxflags) {
if (a == QLatin1String("-m128bit-long-double") || a == QLatin1String("-m32")
for (int iArg = 0; iArg < allCxxflags.length(); ++iArg) {
const QString &a = allCxxflags.at(iArg);
if (a == QLatin1String("-arch") || a == QLatin1String("-sysroot")
|| a == QLatin1String("-isysroot")) {
if (++iArg < allCxxflags.length())
arguments << a << allCxxflags.at(iArg);
} else if (a == QLatin1String("-m128bit-long-double") || a == QLatin1String("-m32")
|| a == QLatin1String("-m3dnow") || a == QLatin1String("-m3dnowa")
|| a == QLatin1String("-m64") || a == QLatin1String("-m96bit-long-double")
|| a == QLatin1String("-mabm") || a == QLatin1String("-maes")
......
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