diff options
author | Adrian Prantl <aprantl@apple.com> | 2019-10-11 20:27:51 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2019-10-11 20:27:51 +0000 |
commit | f30ae7173958681b4b639e82e6530b3b047c1fde (patch) | |
tree | 20b6619bde586c08f48513a10e34159d65d257ef /lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp | |
parent | cf1ba238d4f752133897af1773e85056b1492803 (diff) | |
download | bcm5719-llvm-f30ae7173958681b4b639e82e6530b3b047c1fde.tar.gz bcm5719-llvm-f30ae7173958681b4b639e82e6530b3b047c1fde.zip |
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.
llvm-svn: 374591
Diffstat (limited to 'lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp')
-rw-r--r-- | lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp index 6e2a379d9e8..1422911d654 100644 --- a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp +++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp @@ -515,6 +515,9 @@ ClangExpressionParser::ClangExpressionParser( 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); } |