diff options
author | David Ostrovsky <david@ostrovsky.org> | 2018-01-31 09:01:27 +0100 |
---|---|---|
committer | David Ostrovsky <david@ostrovsky.org> | 2018-01-31 23:12:04 +0100 |
commit | 85b488f7fa12cfe7bfd3c10aecd25aefda734a17 (patch) | |
tree | fcdf8ec96c28379dc8fb045460f1fe63fbe5c4f7 /cmake/protobuf-config-version.cmake.in | |
parent | b718551571983f281d065e818da4fd9ca5723d89 (diff) |
Bazel: Support building with Java 9
Fixes: #4256.
Bazel@HEAD supports Java 9.
The current code has one single issue with Java 9 compliance: the usage
of sun.misc package. We add jdk.unsupported module with --add-modules
compiler option for now. Long term, the usage of non public API should
be avoided.
To build with Java 9, build custom bazel version and issue:
$ bazel --host_javabase=/usr/lib64/jvm/java-9-openjdk build \
--javacopt='--release 9' \
--java_toolchain=@bazel_tools//tools/jdk:toolchain_jdk9 \
:protobuf_java
Diffstat (limited to 'cmake/protobuf-config-version.cmake.in')
0 files changed, 0 insertions, 0 deletions