llvm-toolchain/debian/patches/force-gcc-header-obj.diff
Sylvestre Ledru 85ad7aafba * If we get an unexpected pass, do not break the tests
do-not-fail-on-unexpected-pass.diff (I am disabling some tests)
* Fix the path detection of the objective h headers.
2013-12-02 10:51:04 +00:00

17 lines
658 B
Diff

Index: llvm-toolchain-3.4-3.4~+rc1/clang/lib/Driver/ToolChains.cpp
===================================================================
--- llvm-toolchain-3.4-3.4~+rc1.orig/clang/lib/Driver/ToolChains.cpp 2013-12-02 10:15:22.000000000 +0100
+++ llvm-toolchain-3.4-3.4~+rc1/clang/lib/Driver/ToolChains.cpp 2013-12-02 10:16:54.648134997 +0100
@@ -2618,6 +2618,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.