forked from qt-creator/qt-creator
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:
@@ -433,6 +433,13 @@ bool CompilerOptionsBuilder::excludeDefineDirective(const QByteArray &defineDire
|
||||
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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user