aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/bootstrap
diff options
context:
space:
mode:
authorGravatar Laszlo Csomor <laszlocsomor@google.com>2016-09-26 14:10:25 +0000
committerGravatar Yun Peng <pcloudy@google.com>2016-09-26 17:48:46 +0000
commit50f6bbaeb56c927470fd5ef84351845bebec367c (patch)
tree6e5770f5bfbd1fcf74fa700b89c7f0658babda5f /scripts/bootstrap
parent9e21b41d4a90e51c582cb987a6689a625018b1b0 (diff)
Bazel bootstrapping: consume custom startup flags
The bootstrap build is special in that it does not use the Bazel client hence we cannot pass a --bazelrc flag as there'd be nothing to parse it. While Bazel is being bootstrapped it's nice to have colors on a smart terminal, but when the bootstrapping is done by Jenkins as part of a CI test, we need the output to be readable, i.e. be free of control characters, so we should pass --colors=no for example. By exporting BAZEL_BOOTSTRAP_STARTUP_OPTIONS the user can control what startup flags will the bootstrap build use, so we can pass these dumbing-down flags during CI builds. -- MOS_MIGRATED_REVID=134273969
Diffstat (limited to 'scripts/bootstrap')
-rwxr-xr-xscripts/bootstrap/compile.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/bootstrap/compile.sh b/scripts/bootstrap/compile.sh
index 03064e75d2..77372f015b 100755
--- a/scripts/bootstrap/compile.sh
+++ b/scripts/bootstrap/compile.sh
@@ -318,6 +318,7 @@ function bootstrap_build() {
--workspace_directory=${PWD} \
--nofatal_event_bus_exceptions \
${BAZEL_DIR_STARTUP_OPTIONS} \
+ ${BAZEL_BOOTSTRAP_STARTUP_OPTIONS:-} \
build \
--ignore_unsupported_sandboxing \
--startup_time=329 --extract_data_time=523 \