1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 03:28:20 +02:00

use llvm-11.0.0.src.tar.xz if it exists

User can downloaded llvm-11.0.0.src.tar.xz into extern directory so build will not git clone LLVM repo.
This commit is contained in:
apg360 2020-11-26 10:58:55 +02:00 committed by GitHub
parent 40f9ad5f12
commit 0d0c0ee4a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

11
extern/llvm_build.sh vendored
View file

@ -2,6 +2,11 @@
set -e
if [ ! -d llvm-project_11_0_0 ]; then
if [ -f llvm-11.0.0.src.tar.xz ]; then # if user downloaded llvm-11.0.0.src.tar.xz then use it instead
tar -xf llvm-11.0.0.src.tar.xz
mkdir llvm-project_11_0_0
mv llvm-11.0.0.src llvm-project_11_0_0/llvm
else # git clone llvm repo if llvm-11.0.0.src.tar.xz does not exists
git clone https://github.com/llvm/llvm-project.git llvm-project_11_0_0
if [ -d llvm-project_11_0_0 ]; then
@ -9,8 +14,8 @@ if [ ! -d llvm-project_11_0_0 ]; then
git checkout llvmorg-11.0.0
cd ..
fi
fi
fi
fi #end if llvm-project_11_0_0 exists
if [ ! -d llvm_linux_11_0_0 ]; then
mkdir llvm_linux_11_0_0
@ -38,4 +43,4 @@ if [ ! -d ../IDE/dist/llvm/bin ]; then
mkdir ../IDE/dist/llvm
mkdir ../IDE/dist/llvm/bin
fi
cp llvm_linux_rel_11_0_0/bin/llvm-ar ../IDE/dist/llvm/bin
cp llvm_linux_rel_11_0_0/bin/llvm-ar ../IDE/dist/llvm/bin