[Lldb-commits] [lldb] r374591 - Set GNUC version in the LLDB expression parser.
Adrian Prantl via lldb-commits
lldb-commits at lists.llvm.org
Fri Oct 11 13:27:51 PDT 2019
Author: adrian
Date: Fri Oct 11 13:27:51 2019
New Revision: 374591
URL: http://llvm.org/viewvc/llvm-project?rev=374591&view=rev
Log:
Set GNUC version in the LLDB expression parser.
This adapts LLDB for https://reviews.llvm.org/D68055.
Darwin's libC headers expect the GNUC macro to be set.
Modified:
lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
Modified: lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp?rev=374591&r1=374590&r2=374591&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp (original)
+++ lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp Fri Oct 11 13:27:51 2019
@@ -515,6 +515,9 @@ ClangExpressionParser::ClangExpressionPa
lang_opts.DoubleSquareBracketAttributes = true;
lang_opts.CPlusPlus11 = true;
+ // The Darwin libc expects this macro to be set.
+ lang_opts.GNUCVersion = 40201;
+
SetupModuleHeaderPaths(m_compiler.get(), m_include_directories,
target_sp);
}
More information about the lldb-commits
mailing list