commit | 9d349c2eb99b4d4b1c2fdae91629eeb3f00fb907 | [log] [tgz] |
---|---|---|
author | Adrian Prantl <aprantl@apple.com> | Fri Oct 11 20:27:51 2019 +0000 |
committer | Adrian Prantl <aprantl@apple.com> | Fri Oct 11 20:27:51 2019 +0000 |
tree | bb703204c02214c87972cebc36272975eee9caa4 | |
parent | f798ff30ef7ceacd95cd8929935439233832012d [diff] |
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. git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@374591 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp b/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp index 6e2a379..1422911 100644 --- a/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp +++ b/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
@@ -515,6 +515,9 @@ 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); }