From a2a794790da9db906475888fef1eef8586c29ad3 Mon Sep 17 00:00:00 2001 From: LLVM Packaging Team Date: Wed, 27 Jun 2018 15:24:20 +0100 Subject: [PATCH] force-gcc-header-obj =================================================================== Gbp-Pq: Name force-gcc-header-obj.diff --- clang/lib/Driver/ToolChains/Linux.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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. -- 2.30.2