Fix Bazel bootstrapping with JDK 7 With latest change to the bootstrap compilation, some options were wrongly moved around. Tested with `source scripts/ci/build.sh; bazel_build` for JAVA_VERSION 1.7 and 1.8. -- MOS_MIGRATED_REVID=112409496
diff --git a/scripts/bootstrap/bootstrap.sh b/scripts/bootstrap/bootstrap.sh index a780f78..16a13c9 100755 --- a/scripts/bootstrap/bootstrap.sh +++ b/scripts/bootstrap/bootstrap.sh
@@ -30,9 +30,17 @@ : ${JAVA_VERSION:="1.8"} +: ${BAZEL_ARGS:=--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:-}"} + if [ -z "${BAZEL-}" ]; then function bazel_build() { - bootstrap_build ${EXTRA_BAZEL_ARGS-} \ + bootstrap_build ${BAZEL_ARGS-} \ --verbose_failures \ --javacopt="-source ${JAVA_VERSION} -target ${JAVA_VERSION}" \ "${EMBED_LABEL_ARG[@]}" \ @@ -41,7 +49,7 @@ else function bazel_build() { ${BAZEL} --bazelrc=${BAZELRC} build \ - ${EXTRA_BAZEL_ARGS-} \ + ${BAZEL_ARGS-} \ --verbose_failures \ --javacopt="-source ${JAVA_VERSION} -target ${JAVA_VERSION}" \ "${EMBED_LABEL_ARG[@]}" \
diff --git a/scripts/bootstrap/compile.sh b/scripts/bootstrap/compile.sh index c1d0841..461c207 100755 --- a/scripts/bootstrap/compile.sh +++ b/scripts/bootstrap/compile.sh
@@ -231,12 +231,5 @@ --rc_source=/dev/null --isatty=1 --terminal_columns=97 \ --ignore_client_env \ --client_cwd=${PWD} \ - \ - --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 \ "${@}" }