forked from OSchip/llvm-project
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:
parent
cf1ba238d4
commit
f30ae71739
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue