mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28:20 +02:00
make llvm git clone shallow
This commit is contained in:
parent
160c5f5186
commit
a47dc0c0bf
1 changed files with 2 additions and 8 deletions
10
extern/llvm_build.sh
vendored
10
extern/llvm_build.sh
vendored
|
@ -6,14 +6,8 @@ if [ ! -d llvm-project_11_0_0 ]; then
|
|||
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
|
||||
cd llvm-project_11_0_0
|
||||
git checkout llvmorg-11.0.0
|
||||
cd ..
|
||||
fi
|
||||
else # shallow git clone llvm repo if llvm-11.0.0.src.tar.xz does not exists
|
||||
git clone --depth 1 --branch llvmorg-11.0.0 https://github.com/llvm/llvm-project.git llvm-project_11_0_0
|
||||
fi
|
||||
fi #end if llvm-project_11_0_0 exists
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue