Skip to content

Commit 436f5b3

Browse files
committed
also download separately packaged build-time cmake modules
1 parent aa0b683 commit 436f5b3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ wget https://github.com/llvm/llvm-project/releases/download/llvmorg-$LLVM_VERSIO
2626
# workaround for msys2 (`tar xf file.tar.xz` hangs): https://github.com/msys2/MSYS2-packages/issues/1548
2727
xz -dc llvm-$LLVM_VERSION.src.tar.xz | tar -x --file=-
2828
mv llvm-$LLVM_VERSION.src/* llvm
29+
# get required *build-time only* cmake modules that are separately packaged
30+
wget https://github.com/llvm/llvm-project/releases/download/llvmorg-$LLVM_VERSION/cmake-$LLVM_VERSION.src.tar.xz
31+
xz -dc cmake-$LLVM_VERSION.src.tar.xz | tar -x --file=-
32+
mv cmake-$LLVM_VERSION.src/Modules/* llvm/cmake/modules/.
2933
cd llvm
3034

3135
# make build dir and run cmake

0 commit comments

Comments
 (0)