1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Merge pull request #687 from Green-Sky/llvm_shallow

[Enhancement] lighter llvm git clone (shallow)
This commit is contained in:
Brian Fiete 2020-11-28 12:17:01 -08:00 committed by GitHub
commit 7d33ef3d5d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

10
extern/llvm_build.sh vendored
View file

@ -6,14 +6,8 @@ if [ ! -d llvm-project_11_0_0 ]; then
tar -xf llvm-11.0.0.src.tar.xz tar -xf llvm-11.0.0.src.tar.xz
mkdir llvm-project_11_0_0 mkdir llvm-project_11_0_0
mv llvm-11.0.0.src llvm-project_11_0_0/llvm 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 else # shallow 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 git clone --depth 1 --branch llvmorg-11.0.0 https://github.com/llvm/llvm-project.git llvm-project_11_0_0
if [ -d llvm-project_11_0_0 ]; then
cd llvm-project_11_0_0
git checkout llvmorg-11.0.0
cd ..
fi
fi fi
fi #end if llvm-project_11_0_0 exists fi #end if llvm-project_11_0_0 exists