Commit 38b20a21 authored by Sergey Shambir's avatar Sergey Shambir Committed by Tobias Hunger
Browse files

GccToolChain: detecting GCC 4.8 flag -std=c++1y



Change-Id: Ia5e92efd325b3164cc6d67b1469d5a63a0238aca
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent 18fa4865
......@@ -425,7 +425,8 @@ QByteArray GccToolChain::predefinedMacros(const QStringList &cxxflags) const
ToolChain::CompilerFlags GccToolChain::compilerFlags(const QStringList &cxxflags) const
{
if (cxxflags.contains(QLatin1String("-std=c++0x")) || cxxflags.contains(QLatin1String("-std=gnu++0x")) ||
cxxflags.contains(QLatin1String("-std=c++11")) || cxxflags.contains(QLatin1String("-std=gnu++11")))
cxxflags.contains(QLatin1String("-std=c++11")) || cxxflags.contains(QLatin1String("-std=gnu++11")) ||
cxxflags.contains(QLatin1String("-std=c++1y")) || cxxflags.contains(QLatin1String("-std=gnu++1y")))
return STD_CXX11;
return NO_FLAGS;
}
......
Supports Markdown
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