From 70a9394d94e6f29b91e91a1fa743fbe61a9e6da7 Mon Sep 17 00:00:00 2001 From: malte_langkabel Date: Tue, 16 Feb 2016 17:43:40 +0100 Subject: [PATCH] data: ignore MS-style ASM errors * ignoring a certain error message for MS-style inline assemblies that is thrown by clang. --- src/lib_parser/data/parser/cxx/CxxDiagnosticConsumer.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib_parser/data/parser/cxx/CxxDiagnosticConsumer.cpp b/src/lib_parser/data/parser/cxx/CxxDiagnosticConsumer.cpp index c3c01cfb..9fd12146 100644 --- a/src/lib_parser/data/parser/cxx/CxxDiagnosticConsumer.cpp +++ b/src/lib_parser/data/parser/cxx/CxxDiagnosticConsumer.cpp @@ -60,6 +60,11 @@ void CxxDiagnosticConsumer::HandleDiagnostic(clang::DiagnosticsEngine::Level lev info.FormatDiagnostic(messageStr); std::string message = messageStr.str(); + if (message == "MS-style inline assembly is not available: Unable to find target for this triple (no targets are registered)") + { + return; + } + std::string filePath; uint line = 0; uint column = 0;