llvm: fixed C++ include path.
This commit is contained in:
parent
599b3c141e
commit
814dcd9664
@ -1,2 +1,3 @@
|
||||
10e14c901fc3728eecbd5b829e011b59 clang-2.8.tgz
|
||||
220d361b4d17051ff4bb21c64abe05ba llvm-2.8.tgz
|
||||
ca56c3ef8b07ab8f9b168c99df47c501 llvm.diff
|
||||
|
@ -4,10 +4,12 @@
|
||||
|
||||
name=llvm
|
||||
version=2.8
|
||||
release=1
|
||||
source=(http://llvm.org/releases/$version/{$name,clang}-$version.tgz)
|
||||
release=2
|
||||
source=(http://llvm.org/releases/$version/{$name,clang}-$version.tgz llvm.diff)
|
||||
|
||||
build() {
|
||||
patch -p1 -d clang-$version -i $SRC/llvm.diff
|
||||
|
||||
mv clang-$version $name-$version/tools/clang
|
||||
|
||||
cd $name-$version
|
||||
|
20
llvm/llvm.diff
Normal file
20
llvm/llvm.diff
Normal file
@ -0,0 +1,20 @@
|
||||
Fix C++ include paths.
|
||||
|
||||
diff -aur clang-2.8.orig/lib/Frontend/InitHeaderSearch.cpp clang-2.8/lib/Frontend/InitHeaderSearch.cpp
|
||||
--- clang-2.8.orig/lib/Frontend/InitHeaderSearch.cpp 2010-09-03 18:45:53.000000000 +0200
|
||||
+++ clang-2.8/lib/Frontend/InitHeaderSearch.cpp 2010-10-30 11:21:51.415000159 +0200
|
||||
@@ -706,6 +706,14 @@
|
||||
"i686-pc-linux-gnu", "", "", triple);
|
||||
AddGnuCPlusPlusIncludePaths("/usr/include/c++/4.3.1",
|
||||
"x86_64-unknown-linux-gnu", "", "", triple);
|
||||
+
|
||||
+ // CRUX 2010-10-30
|
||||
+ AddGnuCPlusPlusIncludePaths("/usr/include/c++/4.5.1",
|
||||
+ "i686-pc-linux-gnu", "", "", triple);
|
||||
+ AddGnuCPlusPlusIncludePaths("/usr/include/c++/4.5.1",
|
||||
+ "x86_64-unknown-linux-gnu", "", "", triple);
|
||||
+
|
||||
+
|
||||
// Gentoo x86 2009.1 stable
|
||||
AddGnuCPlusPlusIncludePaths(
|
||||
"/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/include/g++-v4",
|
Loading…
x
Reference in New Issue
Block a user