diff options
author | Diana Picus <diana.picus@linaro.org> | 2017-11-24 16:19:41 +0100 |
---|---|---|
committer | Diana Picus <diana.picus@linaro.org> | 2017-12-15 13:08:13 +0100 |
commit | 052b7d37cefe8975f699110a5c9508b2501a97e0 (patch) | |
tree | 8d78edb8da899bfdfbab43abd6a36db816a3fd4e /helpers/llvm-projs | |
parent | 5fec8b75ddf572779af5dc2a639c8eb15c6bfc9f (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-x | helpers/llvm-projs | 10 |
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 |