aboutsummaryrefslogtreecommitdiff
path: root/helpers/llvm-projs
diff options
context:
space:
mode:
authorDiana Picus <diana.picus@linaro.org>2017-11-24 16:19:41 +0100
committerDiana Picus <diana.picus@linaro.org>2017-12-15 13:08:13 +0100
commit052b7d37cefe8975f699110a5c9508b2501a97e0 (patch)
tree8d78edb8da899bfdfbab43abd6a36db816a3fd4e /helpers/llvm-projs
parent5fec8b75ddf572779af5dc2a639c8eb15c6bfc9f (diff)
Add llvm.py configure
Add a subcommand that runs CMake in a given build directory, with a custom generator and custom CMake definitions. Also update llvm-build to use it instead of calling CMake directly, and add calls to it in llvm-projs as well to make sure we update the build directories whenever we enable or disable a project. One known issue with the current code is that the output of the CMake command is not printed out live, but rather after the command has finished execution. This is going to be more important for llvm.py build than for llvm.py configure, so we can fix it in a future commit. Change-Id: I263b2d47c2083a1778608253bbd437149375c539
Diffstat (limited to 'helpers/llvm-projs')
-rwxr-xr-xhelpers/llvm-projs10
1 files changed, 10 insertions, 0 deletions
diff --git a/helpers/llvm-projs b/helpers/llvm-projs
index 21b8bea..f4d5df7 100755
--- a/helpers/llvm-projs
+++ b/helpers/llvm-projs
@@ -197,3 +197,13 @@ if [ "$remove" != "" ]; then
fi
safe_run python3 $llvmtool --env $env projects --repos $repos $add $remove
+
+if [ -d $env/build ]; then
+ echo "Updating $env/build"
+ safe_run python3 $llvmtool --env $env configure --build-dir $env/build
+fi
+
+if [ -d $env/debug ]; then
+ echo "Updating $env/debug"
+ safe_run python3 $llvmtool --env $env configure --build-dir $env/debug
+fi