llvm-toolchain/debian/patches/force-gcc-header-obj.diff
2013-12-12 15:39:01 +00:00

17 lines
688 B
Diff

Index: llvm-toolchain-snapshot_3.5~svn197156/clang/lib/Driver/ToolChains.cpp
===================================================================
--- llvm-toolchain-snapshot_3.5~svn197156.orig/clang/lib/Driver/ToolChains.cpp 2013-12-12 16:38:10.897767658 +0100
+++ llvm-toolchain-snapshot_3.5~svn197156/clang/lib/Driver/ToolChains.cpp 2013-12-12 16:38:10.897767658 +0100
@@ -2654,6 +2654,11 @@
return;
}
+ // Force the inclusion of the gcc headers (objc/objc.h)
+ addExternCSystemIncludeIfExists(
+ DriverArgs, CC1Args, GCCInstallation.getInstallPath() + "/include");
+
+
// Lacking those, try to detect the correct set of system includes for the
// target triple.