Last active
July 24, 2018 20:19
-
-
Save jin/fb8939b1dc4b7ce3ddfad0ef66df8330 to your computer and use it in GitHub Desktop.
Use JDK8 as Bazel's --host_javabase
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run with Bazel with 88a20ee08c0af7cf187893bcafe0771e5a19ff9d reverted | |
# This commit adds a JDK9+ opt into desugar.sh to silence warnings | |
# $ git revert 88a20ee08c0af7cf187893bcafe0771e5a19ff9d | |
# After that, run bazel build --config=jdk8 //... | |
build:jdk8 --javabase=@local_jdk//:jdk | |
build:jdk8 --host_javabase=@local_jdk//:jdk | |
build:jdk8 --java_toolchain=@bazel_tools//tools/jdk:toolchain_hostjdk8 | |
build:jdk8 --host_java_toolchain=@bazel_tools//tools/jdk:toolchain_hostjdk8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment