llvm: fix include path for clang.

ie. /system/lib/x86/clang/include instead of
/system/lib/x86/x86/clang/include.
This commit is contained in:
Jerome Duval
2018-11-24 23:37:42 +01:00
parent cd570083d0
commit 2b30f1f13d
4 changed files with 4 additions and 4 deletions

View File

@@ -31,7 +31,7 @@ other than the ones listed above.
HOMEPAGE="https://www.llvm.org/"
COPYRIGHT="2003-2018 University of Illinois at Urbana-Champaign"
LICENSE="UIUC"
REVISION="4"
REVISION="5"
SOURCE_URI="https://releases.llvm.org/$portVersion/llvm-$portVersion.src.tar.xz"
CHECKSUM_SHA256="b6d6c324f9c71494c0ccaf3dac1f16236d970002b42bb24a6c9e1634f7d0f4e2"
SOURCE_DIR="llvm-$portVersion.src"

View File

@@ -31,7 +31,7 @@ other than the ones listed above.
HOMEPAGE="https://www.llvm.org/"
COPYRIGHT="2003-2018 University of Illinois at Urbana-Champaign"
LICENSE="UIUC"
REVISION="2"
REVISION="3"
SOURCE_URI="https://releases.llvm.org/$portVersion/llvm-$portVersion.src.tar.xz"
CHECKSUM_SHA256="8bc1f844e6cbde1b652c19c1edebc1864456fd9c78b8c1bea038e51b363fe222"
SOURCE_DIR="llvm-$portVersion.src"

View File

@@ -68,7 +68,7 @@ index 8c6face..4c04668 100644
+ SmallString<128> P = llvm::sys::path::parent_path(NoVer);
+
+ // Get foo/include/c++/v1
+ llvm::sys::path::append(P, HAIKU_HYBRID_SECONDARY, Clang, Ver);
+ llvm::sys::path::append(P, Clang, Ver);
+#else
SmallString<128> P = StringRef(HSOpts.ResourceDir);
+#endif

View File

@@ -68,7 +68,7 @@ index 8a70404..c80c3da 100644
+ SmallString<128> P = llvm::sys::path::parent_path(NoVer);
+
+ // Get foo/include/c++/v1
+ llvm::sys::path::append(P, HAIKU_HYBRID_SECONDARY, Clang, Ver);
+ llvm::sys::path::append(P, Clang, Ver);
+#else
SmallString<128> P = StringRef(HSOpts.ResourceDir);
+#endif