Update post_build_ninja_summary.py for Linux
post_build_ninja_summary.py gives a summary of a ninja build. It can be
run standalone or it can be run automatically by autoninja. This CL
updates the Python script and the autoninja bash script to make this
work on Linux. This includes removing a zero-value assert, and ensuring
that .so files get categorized as such.
Change-Id: I2d59ab129f5ce70117beeb119719f8432bfbab7c
Reviewed-on: https://chromium-review.googlesource.com/915053
Reviewed-by: Dirk Pranke <[email protected]>
Commit-Queue: Bruce Dawson <[email protected]>
diff --git a/autoninja b/autoninja
index 059ec73..9e64c30 100755
--- a/autoninja
+++ b/autoninja
@@ -9,4 +9,8 @@
# Also print it to reassure that the right settings are being used.
command=$(python $(dirname -- "$0")/autoninja.py "$@")
echo $command
-exec $command
+$command
+if [ $? -eq 0 ] && [ "$NINJA_SUMMARIZE_BUILD" == "1" ]; then
+ python $(dirname -- "$0")/post_build_ninja_summary.py $@
+fi
+