aboutsummaryrefslogtreecommitdiff
path: root/helpers/llvm-env
diff options
context:
space:
mode:
authorDiana Picus <diana.picus@linaro.org>2016-07-20 17:14:00 +0300
committerDiana Picus <diana.picus@linaro.org>2016-07-21 12:01:54 +0300
commitb2a8786e473b94382ffc7611d2859aa1e700093d (patch)
tree015b29de9221bf9dba104b9f11862d081079efa3 /helpers/llvm-env
parentde3457e24e6d35459ce45bd5a97bc0963d3d42af (diff)
downloadlinaro-scripts-b2a8786e473b94382ffc7611d2859aa1e700093d.tar.gz
Separate install directory for each worktree
The install directory will be <Worktree>/install, right next to the build and source dirs, and it will be exported in LLVM_INSTALL. Note that this won't affect existing worktree directories, you should either nuke the build directories or manually update CMakeCache.txt for them. Change-Id: I8bb80f8d86d9d2f8d02940fbbd8a2c8b5b1a05e3
Diffstat (limited to 'helpers/llvm-env')
-rwxr-xr-xhelpers/llvm-env3
1 files changed, 3 insertions, 0 deletions
diff --git a/helpers/llvm-env b/helpers/llvm-env
index f293adb..50c4c81 100755
--- a/helpers/llvm-env
+++ b/helpers/llvm-env
@@ -123,6 +123,8 @@ if $debug_build; then
llvm_build_dir=$LLVM_ROOT/$branch/debug
fi
+llvm_install_dir=$LLVM_ROOT/$branch/install
+
if [ "$clean" = true ]; then
.llvm-env-remove $llvm_dir $llvm_worktree_dir
else
@@ -146,6 +148,7 @@ fi
export LLVM_SRC=$llvm_worktree_dir
export LLVM_BLD=$llvm_build_dir
+export LLVM_INSTALL=$llvm_install_dir
export LLVM_DEBUG=$debug_build # For llvm-build to know
# Make it possible to undo changes to the PATH: we export an LLVM_OLD_PATH, and