summaryrefslogtreecommitdiff
blob: ed332f3f68afb5d3c2b93f7f1241643c6cbca47c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- a/tools/clang/lib/Frontend/InitHeaderSearch.cpp
+++ b/tools/clang/lib/Frontend/InitHeaderSearch.cpp
@@ -233,6 +233,7 @@
     case llvm::Triple::Bitrig:
       break;
     default:
+      AddPath("@GENTOO_PORTAGE_EPREFIX@/usr/include", System, false);
       // FIXME: temporary hack: hard-coded paths.
       AddPath("/usr/local/include", System, false);
       break;
@@ -505,6 +506,7 @@
   // Add the default framework include paths on Darwin.
   if (HSOpts.UseStandardSystemIncludes) {
     if (triple.isOSDarwin()) {
+      AddPath("@GENTOO_PORTAGE_EPREFIX@/Frameworks", System, true);
       AddPath("/System/Library/Frameworks", System, true);
       AddPath("/Library/Frameworks", System, true);
     }