From 5909d9dc9ee0248a45cfbbc0ed2123e84824c2a1 Mon Sep 17 00:00:00 2001 From: Julio Merino Date: Thu, 25 Feb 2016 21:44:31 +0000 Subject: Allow outputting the progress of Bazel's build. Rename run_silent to run and add a global VERBOSE variable that tunes whether the run function prints its output or not. This is for better debugging possibilities of Bazel's self-build, though compile.sh remains silent as before and only displays the command's output in case of an error. -- MOS_MIGRATED_REVID=115599355 --- compile.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'compile.sh') diff --git a/compile.sh b/compile.sh index 485d54c5fa..24a179f05a 100755 --- a/compile.sh +++ b/compile.sh @@ -24,6 +24,11 @@ set -o errexit cd "$(dirname "$0")" +# Set the default verbose mode in buildenv.sh so that we do not display command +# output unless there is a failure. We do this conditionally to offer the user +# a chance of overriding this in case they want to do so. +: ${VERBOSE:=no} + source scripts/bootstrap/buildenv.sh function usage() { -- cgit v1.2.3