aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xhelpers/llvm-prepare7
1 files changed, 6 insertions, 1 deletions
diff --git a/helpers/llvm-prepare b/helpers/llvm-prepare
index babc77c..46a1780 100755
--- a/helpers/llvm-prepare
+++ b/helpers/llvm-prepare
@@ -27,7 +27,12 @@ function prepare() {
}
gitroot=ssh://$LLVM_GITUSER@review.linaro.org:29418/toolchain/llvm
-svnroot=https://llvm.org/svn/llvm-project
+
+if [ -z $LLVM_SVNUSER ]; then
+ svnroot=https://llvm.org/svn/llvm-project
+else
+ svnroot=https://$LLVM_SVNUSER@llvm.org/svn/llvm-project
+fi
echo " + Setting up LLVM"
prepare $LLVM_SRC $gitroot/llvm $svnroot/llvm/trunk