diff options
author | 2016-01-18 15:58:19 +0000 | |
---|---|---|
committer | 2016-01-18 16:52:06 +0000 | |
commit | 5ed789526c0754f6b5f47d1bd1f4b20e6a239000 (patch) | |
tree | 0134b565eea02d860caa41b24b60e2e0f8f01c1d /scripts/bootstrap/bootstrap.sh | |
parent | 9a9c3b93f9eefdfa166f24a893d51d8d4abc8d3a (diff) |
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
Diffstat (limited to 'scripts/bootstrap/bootstrap.sh')
-rwxr-xr-x | scripts/bootstrap/bootstrap.sh | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/scripts/bootstrap/bootstrap.sh b/scripts/bootstrap/bootstrap.sh index a780f78ce6..16a13c9042 100755 --- a/scripts/bootstrap/bootstrap.sh +++ b/scripts/bootstrap/bootstrap.sh @@ -30,9 +30,17 @@ fi : ${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 @@ if [ -z "${BAZEL-}" ]; then 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[@]}" \ |