Skip to content

Commit 2489176

Browse files
committed
use git clone instead due to issues with symlinks and tar on msys
1 parent fe23fd3 commit 2489176

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

build.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,8 @@ which python
2020
python --version
2121

2222
# download LLVM source code
23-
rm -rf llvm
24-
mkdir llvm
25-
wget https://github.com/llvm/llvm-project/releases/download/llvmorg-$LLVM_VERSION/llvm-project-$LLVM_VERSION.src.tar.xz
26-
# workaround for msys2 (`tar xf file.tar.xz` hangs): https://github.com/msys2/MSYS2-packages/issues/1548
27-
xz -dc llvm-project-$LLVM_VERSION.src.tar.xz | tar -x --file=-
28-
cd llvm-project-$LLVM_VERSION.src/llvm
23+
git clone -b $LLVM_VERSION --depth 1 https://github.com/llvm/llvm-project.git
24+
cd llvm-project/llvm
2925

3026
# make build dir and run cmake
3127
mkdir build

0 commit comments

Comments
 (0)