diff options
author | Julio Merino <jmmv@google.com> | 2016-02-25 21:44:31 +0000 |
---|---|---|
committer | Philipp Wollermann <philwo@google.com> | 2016-02-26 10:07:56 +0000 |
commit | 5909d9dc9ee0248a45cfbbc0ed2123e84824c2a1 (patch) | |
tree | c37219d545eab7465e458dd34accbb038acce11b /compile.sh | |
parent | cdf316089ef4cc6b503f06f829234bdc68a2d160 (diff) |
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
Diffstat (limited to 'compile.sh')
-rwxr-xr-x | compile.sh | 5 |
1 files changed, 5 insertions, 0 deletions
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() { |