nixpkgs/pkgs/development/compilers/llvm/clang-include-paths-svn.patch
Michael Raskin 5fbf32b737 Missing files
svn path=/nixpkgs/trunk/; revision=28133
2011-08-03 08:38:34 +00:00

41 lines
1 KiB
Diff

diff -ru -x '*~' a/tools/clang/lib/Frontend/InitHeaderSearch.cpp b/tools/clang/lib/Frontend/InitHeaderSearch.cpp
--- a/tools/clang/lib/Frontend/InitHeaderSearch.cpp 2010-09-03 18:45:53.000000000 +0200
+++ b/tools/clang/lib/Frontend/InitHeaderSearch.cpp 2011-02-05 14:59:08.669573190 +0100
@@ -480,6 +480,7 @@
AddPath(*i, System, false, false, false);
return;
}
+#if 0
switch (os) {
case llvm::Triple::Win32: {
@@ -593,7 +593,9 @@
}
if ( os != llvm::Triple::RTEMS )
AddPath("/usr/include", System, false, false, false);
+#endif
+ AddPath(C_INCLUDE_PATH, System, false, false, false);
}
void InitHeaderSearch::
@@ -550,6 +553,7 @@
triple);
return;
}
+#if 0
// FIXME: temporary hack: hard-coded paths.
if (triple.isOSDarwin()) {
@@ -769,6 +773,10 @@
default:
break;
}
+#endif
+ AddGnuCPlusPlusIncludePaths(
+ CPP_INCLUDE_PATH,
+ CPP_HOST, "", "", triple);
}
void InitHeaderSearch::AddDefaultSystemIncludePaths(const LangOptions &Lang,