From: LLVM Packaging Team Date: Wed, 27 Jun 2018 14:24:20 +0000 (+0100) Subject: force-gcc-header-obj X-Git-Tag: archive/raspbian/1%6.0.1-2+rpi1^2~37 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a2a794790da9db906475888fef1eef8586c29ad3;p=llvm-toolchain-6.0.git force-gcc-header-obj =================================================================== Gbp-Pq: Name force-gcc-header-obj.diff --- diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp index 1301cdf1..96646b71 100644 --- a/clang/lib/Driver/ToolChains/Linux.cpp +++ b/clang/lib/Driver/ToolChains/Linux.cpp @@ -576,6 +576,11 @@ void Linux::AddClangSystemIncludeArgs(const ArgList &DriverArgs, return; } + // Force the inclusion of the gcc headers (objc/objc.h) + addExternCSystemIncludeIfExists( + DriverArgs, CC1Args, GCCInstallation.getInstallPath() + "/include"); +// std::cout << GCCInstallation.getInstallPath().str() << "/include" << std::endl; + // Lacking those, try to detect the correct set of system includes for the // target triple.