summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2018-01-02 14:53:46 +0100
committerFabian Groffen <grobian@gentoo.org>2018-01-02 14:53:56 +0100
commita1b84f8898fc23e1cde3a27bc40f2ccc890e9ff4 (patch)
tree28eda1868ae2fa6129b4db8324f2e872a624ebb5 /sys-devel/clang/files
parentsys-libs/compiler-rt-sanitizers: prefer compiler from prefix on Darwin (diff)
downloadgentoo-a1b84f8898fc23e1cde3a27bc40f2ccc890e9ff4.tar.gz
gentoo-a1b84f8898fc23e1cde3a27bc40f2ccc890e9ff4.tar.bz2
gentoo-a1b84f8898fc23e1cde3a27bc40f2ccc890e9ff4.zip
sys-devel/clang: add prefix includes patch for darwin too
Like for older llvm versions, ensure clang uses the prefix include paths on Darwin. Closes: https://bugs.gentoo.org/642644 Package-Manager: Portage-2.3.13, Repoman-2.3.3
Diffstat (limited to 'sys-devel/clang/files')
-rw-r--r--sys-devel/clang/files/5.0.0/darwin_prefix-include-paths.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/sys-devel/clang/files/5.0.0/darwin_prefix-include-paths.patch b/sys-devel/clang/files/5.0.0/darwin_prefix-include-paths.patch
new file mode 100644
index 000000000000..7744b942d0e5
--- /dev/null
+++ b/sys-devel/clang/files/5.0.0/darwin_prefix-include-paths.patch
@@ -0,0 +1,18 @@
+--- a/lib/Frontend/InitHeaderSearch.cpp
++++ b/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);
+ }