summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2019-10-11 19:54:09 +0000
committerAdrian Prantl <aprantl@apple.com>2019-10-11 19:54:09 +0000
commit886099974e067c380ceca27ef2374961e6e1168e (patch)
tree04c00c8445b81fb10469cb948dbcc3516084acda /lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
parent089a334c39d06e958607e1e8e0c9796f9387f512 (diff)
downloadbcm5719-llvm-886099974e067c380ceca27ef2374961e6e1168e.tar.gz
bcm5719-llvm-886099974e067c380ceca27ef2374961e6e1168e.zip
Add -fgnuc-version to ClangModuleCompilationOptions on Darwin.
This adapts LLDB for https://reviews.llvm.org/D68055. Darwin's libC headers expect the GNUC macro to be set. llvm-svn: 374585
Diffstat (limited to 'lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp')
-rw-r--r--lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
index e497424de57..241f9eb037e 100644
--- a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
+++ b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
@@ -1506,7 +1506,8 @@ void PlatformDarwin::AddClangModuleCompilationOptionsForSDKType(
Target *target, std::vector<std::string> &options, SDKType sdk_type) {
const std::vector<std::string> apple_arguments = {
"-x", "objective-c++", "-fobjc-arc",
- "-fblocks", "-D_ISO646_H", "-D__ISO646_H"};
+ "-fblocks", "-D_ISO646_H", "-D__ISO646_H",
+ "-fgnuc-version=4.2.1"};
options.insert(options.end(), apple_arguments.begin(), apple_arguments.end());
OpenPOWER on IntegriCloud