Automatically extract the clang version number when installing compiler-rt
This commit is contained in:
1 parent
2e994e681c
commit
098f6750d7
3 files changed
+6
-5
No files matched your search
@@ -2,17 +2,18 @@
|
||||
|
||||
set -e
|
||||
|
||||
if [ $# -lt 2 ]; then
|
||||
echo $0 dest clang-version
|
||||
if [ $# -lt 1 ]; then
|
||||
echo $0 dest
|
||||
exit 1
|
||||
fi
|
||||
PREFIX="$1"
|
||||
CLANG_VERSION="$2"
|
||||
export PATH=$PREFIX/bin:$PATH
|
||||
|
||||
: ${CORES:=4}
|
||||
: ${ARCHS:=${TOOLCHAIN_ARCHS-i686 x86_64 armv7 aarch64}}
|
||||
|
||||
CLANG_VERSION=$(basename $(dirname $(dirname $(dirname $($PREFIX/bin/clang --print-libgcc-file-name -rtlib=compiler-rt)))))
|
||||
|
||||
if [ ! -d compiler-rt ]; then
|
||||
git clone -b master https://github.com/llvm-mirror/compiler-rt.git
|
||||
CHECKOUT=1
|
||||
|
||||
Reference in new issue
Block a user