From b8b9356dc175d7f76ee3b1a0092bff45c3a1f10d Mon Sep 17 00:00:00 2001 From: Roland Levillain Date: Thu, 20 Aug 2015 17:49:56 +0100 Subject: [PATCH] Add a `--showcommands` option to ART's buildbot-build.sh. Change-Id: Ib562a02b2f96dd5abd580ae751d5d86749144bf3 --- tools/buildbot-build.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/buildbot-build.sh b/tools/buildbot-build.sh index 62fd67bfd..1dced32e9 100755 --- a/tools/buildbot-build.sh +++ b/tools/buildbot-build.sh @@ -24,6 +24,7 @@ android_root="/data/local/tmp/system" linker="linker" mode="target" j_arg="-j$(nproc)" +showcommands= make_command= if [[ "$TARGET_PRODUCT" == "armv8" ]]; then @@ -54,6 +55,9 @@ while true; do elif [[ "$1" == -j* ]]; then j_arg=$1 shift + elif [[ "$1" == "--showcommands" ]]; then + showcommands="showcommands" + shift elif [[ "$1" == "" ]]; then break fi @@ -70,7 +74,7 @@ elif [[ $mode == "target" ]]; then # Use '-e' to force the override of TARGET_GLOBAL_LDFLAGS. # Also, we build extra tools that will be used by tests, so that # they are compiled with our own linker. - make_command="make -e $j_arg build-art-target-tests $common_targets libjavacrypto libjavacoretests linker toybox toolbox sh" + make_command="make -e $j_arg $showcommands build-art-target-tests $common_targets libjavacrypto libjavacoretests linker toybox toolbox sh" echo "Executing env $env $make_command" env $env $make_command fi -- 2.11.0