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
This commit is contained in:
Adrian Prantl 2019-10-11 20:27:51 +00:00
parent cf1ba238d4
commit f30ae71739
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}