Skip to content

Commit 1ce1cf7

Browse files
committed
build-llvm: Allow overriding the llvm repo url through LLVM_REPOSITORY
This matches the existing LLVM_VERSION env variable.
1 parent b0bbde0 commit 1ce1cf7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build-llvm.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
set -e
1818

19+
: ${LLVM_REPOSITORY:=https://github.com/llvm/llvm-project.git}
1920
: ${LLVM_VERSION:=llvmorg-21.1.7}
2021
ASSERTS=OFF
2122
unset HOST
@@ -121,7 +122,7 @@ if [ ! -d llvm-project ]; then
121122
mkdir llvm-project
122123
cd llvm-project
123124
git init
124-
git remote add origin https://github.com/llvm/llvm-project.git
125+
git remote add origin "${LLVM_REPOSITORY}"
125126
cd ..
126127
CHECKOUT=1
127128
fi

0 commit comments

Comments
 (0)