aboutsummaryrefslogtreecommitdiffhomepage
path: root/compile.sh
diff options
context:
space:
mode:
authorGravatar Damien Martin-Guillerez <dmarting@google.com>2016-01-18 15:20:32 +0000
committerGravatar Han-Wen Nienhuys <hanwen@google.com>2016-01-18 16:51:57 +0000
commitdaffc359d7c6961d9f741980438549bf74e6132c (patch)
tree727bf8ec21956a22d83307a0ab1048cdde62eb7d /compile.sh
parent39125b2213d60a52db0a186e2887d007010221cd (diff)
Use only the Bazel server for bootstrapping
This remove all C++ compilation in bootstrapping itself. -- MOS_MIGRATED_REVID=112407516
Diffstat (limited to 'compile.sh')
-rwxr-xr-xcompile.sh18
1 files changed, 1 insertions, 17 deletions
diff --git a/compile.sh b/compile.sh
index ba44f19142..8292ebb813 100755
--- a/compile.sh
+++ b/compile.sh
@@ -72,8 +72,6 @@ if [ ! -x "${BAZEL}" ]; then
display "$INFO $0 ${COMMANDS} /path/to/bazel"
new_step 'Building Bazel from scratch'
source scripts/bootstrap/compile.sh
- cp ${OUTPUT_DIR}/bazel output/bazel
- BAZEL=$(pwd)/output/bazel
fi
#
@@ -95,21 +93,7 @@ if [ $DO_COMPILE ]; then
new_step 'Building Bazel with Bazel'
display "."
log "Building output/bazel"
-
- ${BAZEL} --nomaster_bazelrc --bazelrc=${BAZELRC} --batch \
- --host_jvm_args="-Dio.bazel.UnixFileSystem=0" \
- build \
- --singlejar_top=//src/java_tools/singlejar:bootstrap_deploy.jar \
- --javabuilder_top=//src/java_tools/buildjar:bootstrap_deploy.jar \
- --genclass_top=//src/java_tools/buildjar:bootstrap_genclass_deploy.jar \
- --ijar_top=//third_party/ijar \
- --strategy=Javac=worker --worker_quit_after_build \
- --genrule_strategy=standalone --spawn_strategy=standalone \
- ${EXTRA_BAZEL_ARGS-} \
- --javacopt="-source ${JAVA_VERSION} -target ${JAVA_VERSION}" \
- "${EMBED_LABEL_ARG[@]}" \
- //src:bazel
-
+ bazel_build //src:bazel
cp -f bazel-bin/src/bazel output/bazel
chmod 0755 output/bazel
BAZEL=$(pwd)/output/bazel