Clang: Avoid parsing unknown gcc 6 asm output flags

Task-number: QTCREATORBUG-17183
Change-Id: I24321cd97acfa3dd71a3682f14af4816bdd08059
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Nikolai Kosjar
2016-11-01 14:37:57 +01:00
parent 89fea59099
commit 645f7fc85b

View File

@@ -433,6 +433,13 @@ bool CompilerOptionsBuilder::excludeDefineDirective(const QByteArray &defineDire
return true; return true;
} }
// MinGW 6 supports some fancy asm output flags and uses them in an
// intrinsics header pulled in by windows.h. Clang does not know them.
if (m_projectPart.toolchainType == ProjectExplorer::Constants::MINGW_TOOLCHAIN_TYPEID
&& defineDirective.startsWith("#define __GCC_ASM_FLAG_OUTPUTS__")) {
return true;
}
return false; return false;
} }