force-gcc-header-obj
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Thu, 9 Aug 2018 08:06:11 +0000 (09:06 +0100)
committerGianfranco Costamagna <locutusofborg@debian.org>
Thu, 9 Aug 2018 08:06:11 +0000 (09:06 +0100)
===================================================================

Gbp-Pq: Name force-gcc-header-obj.diff

clang/lib/Driver/ToolChains/Linux.cpp

index 1301cdf114ae120b0008e5c65948ad30da7fe630..96646b715114a2088401191e6e382df3abbb17f0 100644 (file)
@@ -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.