From 11c9581a4a381cf91d76eb918e5c8520dc5e7258 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Fri, 22 May 2015 13:06:53 +0300 Subject: llvm copy from gentoo repo --- .../files/clang-3.4-darwin_prefix-include-paths.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 sys-devel/llvm/files/clang-3.4-darwin_prefix-include-paths.patch (limited to 'sys-devel/llvm/files/clang-3.4-darwin_prefix-include-paths.patch') diff --git a/sys-devel/llvm/files/clang-3.4-darwin_prefix-include-paths.patch b/sys-devel/llvm/files/clang-3.4-darwin_prefix-include-paths.patch new file mode 100644 index 0000000..f5f1d9e --- /dev/null +++ b/sys-devel/llvm/files/clang-3.4-darwin_prefix-include-paths.patch @@ -0,0 +1,18 @@ +--- tools/clang/lib/Frontend/InitHeaderSearch.cpp ++++ 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); + } -- cgit v1.2.3