From 1ce1cf7c3dcb62b39de6bc9c062e569978a1c660 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Mon, 8 Dec 2025 14:47:41 +0200 Subject: [PATCH] build-llvm: Allow overriding the llvm repo url through LLVM_REPOSITORY This matches the existing LLVM_VERSION env variable. --- build-llvm.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build-llvm.sh b/build-llvm.sh index 1e68d97..7f06321 100755 --- a/build-llvm.sh +++ b/build-llvm.sh @@ -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