2011-12-19 13:48:09 +01:00
|
|
|
diff -Naur clang-3.0.src-orig/lib/Driver/ToolChains.cpp clang-3.0.src/lib/Driver/ToolChains.cpp
|
|
|
|
--- clang-3.0.src-orig/lib/Driver/ToolChains.cpp 2011-11-17 02:40:32.000000000 -0500
|
|
|
|
+++ clang-3.0.src/lib/Driver/ToolChains.cpp 2011-12-19 06:29:27.562428830 -0500
|
|
|
|
@@ -1926,14 +1926,17 @@
|
|
|
|
if (DriverArgs.hasArg(options::OPT_nostdinc))
|
|
|
|
return;
|
2011-10-18 18:37:28 +02:00
|
|
|
|
2011-02-05 16:45:02 +01:00
|
|
|
+#if 0
|
2011-12-19 13:48:09 +01:00
|
|
|
if (!DriverArgs.hasArg(options::OPT_nostdlibinc))
|
|
|
|
addSystemInclude(DriverArgs, CC1Args, D.SysRoot + "/usr/local/include");
|
2011-10-18 18:37:28 +02:00
|
|
|
|
2011-12-19 13:48:09 +01:00
|
|
|
+#endif
|
|
|
|
if (!DriverArgs.hasArg(options::OPT_nobuiltininc)) {
|
|
|
|
llvm::sys::Path P(D.ResourceDir);
|
|
|
|
P.appendComponent("include");
|
|
|
|
addSystemInclude(DriverArgs, CC1Args, P.str());
|
2011-02-05 16:45:02 +01:00
|
|
|
}
|
2011-12-19 13:48:09 +01:00
|
|
|
+#if 0
|
|
|
|
|
|
|
|
if (DriverArgs.hasArg(options::OPT_nostdlibinc))
|
|
|
|
return;
|
|
|
|
@@ -1998,6 +2001,8 @@
|
|
|
|
return;
|
2011-02-05 16:45:02 +01:00
|
|
|
|
2011-12-19 13:48:09 +01:00
|
|
|
addExternCSystemInclude(DriverArgs, CC1Args, D.SysRoot + "/usr/include");
|
2011-02-05 16:45:02 +01:00
|
|
|
+#endif
|
2011-12-19 13:48:09 +01:00
|
|
|
+ addExternCSystemInclude(DriverArgs, CC1Args, D.SysRoot + C_INCLUDE_PATH);
|
2010-06-12 23:52:39 +02:00
|
|
|
}
|
|
|
|
|
2011-12-19 13:48:09 +01:00
|
|
|
static bool addLibStdCXXIncludePaths(Twine Base, Twine TargetArchDir,
|
|
|
|
@@ -2030,6 +2035,7 @@
|
|
|
|
bool IsTarget64Bit = (TargetArch == llvm::Triple::x86_64 ||
|
|
|
|
TargetArch == llvm::Triple::ppc64);
|
|
|
|
|
|
|
|
+#if 0
|
|
|
|
StringRef CxxIncludeRoot(CXX_INCLUDE_ROOT);
|
|
|
|
if (!CxxIncludeRoot.empty()) {
|
|
|
|
StringRef CxxIncludeArch(CXX_INCLUDE_ARCH);
|
|
|
|
@@ -2072,6 +2078,10 @@
|
|
|
|
GCCInstallation.getTriple() + Suffix,
|
|
|
|
DriverArgs, CC1Args);
|
2011-02-05 16:45:02 +01:00
|
|
|
}
|
|
|
|
+#endif
|
2011-12-19 13:48:09 +01:00
|
|
|
+ addLibStdCXXIncludePaths(CPP_INCLUDE_PATH,
|
|
|
|
+ CPP_HOST,
|
|
|
|
+ DriverArgs, CC1Args);
|
2010-06-12 23:52:39 +02:00
|
|
|
}
|
|
|
|
|
2011-12-19 13:48:09 +01:00
|
|
|
/// DragonFly - DragonFly tool chain which can call as(1) and ld(1) directly.
|