build-llvm: Allow overriding the llvm repo url through LLVM_REPOSITORY

This matches the existing LLVM_VERSION env variable.
This commit is contained in:
Martin Storsjö committed 2025-12-08 14:50:42 +02:00
1 parent b0bbde0073
commit 1ce1cf7c3d
1 file changed
+2 -1
+2 -1
View File
@@ -16,6 +16,7 @@
set -e
: ${LLVM_REPOSITORY:=https://github.com/llvm/llvm-project.git}
: ${LLVM_VERSION:=llvmorg-21.1.7}
ASSERTS=OFF
unset HOST
@@ -121,7 +122,7 @@ if [ ! -d llvm-project ]; then
mkdir llvm-project
cd llvm-project
git init
git remote add origin https://github.com/llvm/llvm-project.git
git remote add origin "${LLVM_REPOSITORY}"
cd ..
CHECKOUT=1
fi