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