build-llvm: Allow overriding the llvm repo url through LLVM_REPOSITORY
This matches the existing LLVM_VERSION env variable.
This commit is contained in:
1 parent
b0bbde0073
commit
1ce1cf7c3d
1 file changed
+2
-1
+2
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user