From 523397cba86d3ce322baf05175e3baae78ae1f57 Mon Sep 17 00:00:00 2001 From: Justin Yun Date: Wed, 28 Jun 2023 18:07:35 +0900 Subject: [PATCH] STT: add ninja "explain" to see the reason of build triggers verbose.log.gz includes the logs for the ninja explain. The logs will be automatically cached to verbose.log.gz, verbose.log.2.gz, and verbose.log.4.gz. Bug: 284915566 Test: combined_build_test.sh -t cf_x86_64_phone -v userdebug \ -d out/dist -a cf_x86_64_foldable -o -c -r droid Change-Id: Ib722a7c331cfe6b034ab4812b85504d2f5161881 --- treble/combined_build_test.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/treble/combined_build_test.sh b/treble/combined_build_test.sh index 343b759b8..34328e70e 100755 --- a/treble/combined_build_test.sh +++ b/treble/combined_build_test.sh @@ -120,7 +120,7 @@ if [[ -n "${installclean}" ]]; then echo "Installclean..." run_command "${base_command} TARGET_PRODUCT=${target} TARGET_BUILD_VARIANT=${variant} installclean" echo "Build the same initial build..." - run_command "${base_command} TARGET_PRODUCT=${target} TARGET_BUILD_VARIANT=${variant} ${goals}" + run_command "${base_command} TARGET_PRODUCT=${target} TARGET_BUILD_VARIANT=${variant} NINJA_ARGS=\"-d explain\" ${goals}" get_build_trace "build_${target}_installclean.trace.gz" fi @@ -133,7 +133,7 @@ if [[ -n "${alter_target}" ]]; then run_command "rm -f ${dist_dir}/${target}*" fi echo "Build the alternative target..." - run_command "${base_command} TARGET_PRODUCT=${alter_target} TARGET_BUILD_VARIANT=${variant} ${goals}" + run_command "${base_command} TARGET_PRODUCT=${alter_target} TARGET_BUILD_VARIANT=${variant} NINJA_ARGS=\"-d explain\" ${goals}" get_build_trace "build_${alter_target}_ab.trace.gz" echo "Installclean for the primary target..." @@ -143,7 +143,7 @@ if [[ -n "${alter_target}" ]]; then run_command "rm -f ${dist_dir}/${alter_target}*" fi echo "Build the primary target again..." - run_command "${base_command} TARGET_PRODUCT=${target} TARGET_BUILD_VARIANT=${variant} ${goals}" + run_command "${base_command} TARGET_PRODUCT=${target} TARGET_BUILD_VARIANT=${variant} NINJA_ARGS=\"-d explain\" ${goals}" get_build_trace "build_${target}_aba.trace.gz" fi