2011-02-05 16:45:02 +01:00
|
|
|
diff -ru -x '*~' a/tools/clang/lib/Frontend/InitHeaderSearch.cpp b/tools/clang/lib/Frontend/InitHeaderSearch.cpp
|
2011-10-18 18:37:28 +02:00
|
|
|
--- a/tools/clang/lib/Frontend/InitHeaderSearch.cpp 2011-03-21 20:24:04.000000000 -0400
|
|
|
|
+++ b/tools/clang/lib/Frontend/InitHeaderSearch.cpp 2011-10-18 12:09:50.624355551 -0400
|
|
|
|
@@ -438,6 +438,7 @@
|
|
|
|
|
|
|
|
void InitHeaderSearch::AddDefaultCIncludePaths(const llvm::Triple &triple,
|
|
|
|
const HeaderSearchOptions &HSOpts) {
|
2011-02-05 16:45:02 +01:00
|
|
|
+#if 0
|
|
|
|
llvm::Triple::OSType os = triple.getOS();
|
2011-10-18 18:37:28 +02:00
|
|
|
|
2011-02-05 16:45:02 +01:00
|
|
|
switch (os) {
|
2011-10-18 18:37:28 +02:00
|
|
|
@@ -559,6 +560,8 @@
|
2011-02-05 16:45:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
AddPath("/usr/include", System, false, false, false);
|
|
|
|
+#endif
|
2010-06-12 23:52:39 +02:00
|
|
|
+ AddPath(C_INCLUDE_PATH, System, false, false, false);
|
|
|
|
}
|
|
|
|
|
2011-02-05 16:45:02 +01:00
|
|
|
void InitHeaderSearch::
|
2011-10-18 18:37:28 +02:00
|
|
|
@@ -577,6 +580,7 @@
|
2011-02-05 16:45:02 +01:00
|
|
|
triple);
|
2010-06-12 23:52:39 +02:00
|
|
|
return;
|
|
|
|
}
|
2011-02-05 16:45:02 +01:00
|
|
|
+#if 0
|
|
|
|
// FIXME: temporary hack: hard-coded paths.
|
|
|
|
switch (os) {
|
|
|
|
case llvm::Triple::Cygwin:
|
2011-10-18 18:37:28 +02:00
|
|
|
@@ -847,6 +851,10 @@
|
2011-02-05 16:45:02 +01:00
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
+#endif
|
2010-06-12 23:52:39 +02:00
|
|
|
+ AddGnuCPlusPlusIncludePaths(
|
|
|
|
+ CPP_INCLUDE_PATH,
|
|
|
|
+ CPP_HOST, "", "", triple);
|
|
|
|
}
|
|
|
|
|
|
|
|
void InitHeaderSearch::AddDefaultSystemIncludePaths(const LangOptions &Lang,
|