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
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user