Install_deps: Final (hopefully!) fix for dual clang/cfe name (*sigh*).

Patch by simonrepp (Simon Repp), thanks!
This commit is contained in:
2014-07-04 14:04:51 +02:00
parent 6ff6883f99
commit 85c4feab02

View File

@@ -1320,8 +1320,9 @@ compile_LLVM() {
tar -C $SRC --transform "s,([^/]*/?)llvm-[^/]*(.*),\1LLVM-$LLVM_VERSION\2,x" \
-xf $_src.tar.gz
INFO "Unpacking CLANG-$LLVM_VERSION to $_src/tools/clang"
# Stupid clang guys renamed 'clang' to 'cfe' for now handle both cases... :(
tar -C $_src/tools \
--transform "s,([^/]*/?)clang-[^/]*(.*),\1clang\2,x" \
--transform "s,([^/]*/?)(clang|cfe)-[^/]*(.*),\1clang\3,x" \
-xf $_src_clang.tar.gz
cd $_src