From: LLVM Packaging Team Date: Thu, 9 Aug 2018 08:06:11 +0000 (+0100) Subject: force-gcc-header-obj X-Git-Tag: archive/raspbian/1%6.0.1-3+rpi1^2~41 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=964de2f0cbe7846c99b846aae44d0772e54622b9;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.