aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorGravatar Laszlo Csomor <laszlocsomor@google.com>2016-09-26 18:56:22 +0000
committerGravatar Yun Peng <pcloudy@google.com>2016-09-26 19:18:51 +0000
commit0a2082474bf42799991afead98c568cd112b2df1 (patch)
treeaa1a32c5d0c509f1070ce528b75e26b7a0c03d29 /scripts
parent0241b59a2f268aa7c6f606405e19b4e23ea74a23 (diff)
Bazel bootstrapping: build an optimized binary
Pass "-c opt" when building bazel. Fixes https://github.com/bazelbuild/bazel/issues/1830 -- MOS_MIGRATED_REVID=134307054
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/bootstrap/bootstrap.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/bootstrap/bootstrap.sh b/scripts/bootstrap/bootstrap.sh
index 14161ce6fa..c656e15dd0 100755
--- a/scripts/bootstrap/bootstrap.sh
+++ b/scripts/bootstrap/bootstrap.sh
@@ -34,11 +34,13 @@ if [ "${JAVA_VERSION}" = "1.7" ]; then
: ${BAZEL_ARGS:=--java_toolchain=//src/java_tools/buildjar:bootstrap_toolchain_jdk7 \
--host_java_toolchain=//src/java_tools/buildjar:bootstrap_toolchain_jdk7 \
--define JAVA_VERSION=1.7 --ignore_unsupported_sandboxing \
+ --compilation_mode=opt \
"${EXTRA_BAZEL_ARGS:-}"}
else
: ${BAZEL_ARGS:=--java_toolchain=//src/java_tools/buildjar:bootstrap_toolchain \
--host_java_toolchain=//src/java_tools/buildjar:bootstrap_toolchain \
--strategy=Javac=worker --worker_quit_after_build --ignore_unsupported_sandboxing \
+ --compilation_mode=opt \
"${EXTRA_BAZEL_ARGS:-}"}
fi