Skip to content

Commit

Permalink
Wire up --host_java_toolchain
Browse files Browse the repository at this point in the history
--
MOS_MIGRATED_REVID=120574676
  • Loading branch information
cushon authored and damienmg committed Apr 22, 2016
1 parent b77ab15 commit 12c5ae6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions scripts/bootstrap/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,13 @@ fi

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 \
--genrule_strategy=standalone --spawn_strategy=standalone \
"${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 \
--genrule_strategy=standalone --spawn_strategy=standalone \
"${EXTRA_BAZEL_ARGS:-}"}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,7 @@ public FragmentOptions getHost(boolean fallback) {
host.jvmOpts = ImmutableList.of("-client", "-XX:ErrorFile=/dev/stderr");

host.javacOpts = javacOpts;
// TODO(cushon): switch to hostJavaToolchain after cl/118829419 makes a blaze release
host.javaToolchain = javaToolchain;
host.javaToolchain = hostJavaToolchain;

// Java builds often contain complicated code generators for which
// incremental build performance is important.
Expand Down

0 comments on commit 12c5ae6

Please sign in to comment.