On the host I'm using JDK8 that allows to compile Java 1.5 sources to Java 1.5 bytecode with the help of "-source 1.5" and "-target 1.5" javac options. I pass these options to Bazel with --javacopt="-source 1.5" --javacopt="-target 1.5" arguments.
But Bazel uses some kind of wrapper that does not allow these options:
error: Source option 1.5 is no longer supported. Use 1.6 or later.
error: Target option 1.5 is no longer supported. Use 1.6 or later.
I believed that it is possible to specify my own toolchain that uses system installed JDK with "java_toolchain" rule but seems that purpose of this rule is different.
How can I compile to Java 1.5 bytecode? Is it even possible with Bazel?
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/9f57454e-4834-4e60-bff5-d67d5b309087%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/02422da2-f197-4d97-8a5e-381571827fef%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/3b9289f9-19df-4dbe-8747-e282c0315c1b%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CAN3hOS8YwKH_n7ZA-9gLrSjTjhZJnsksQ2X9h41rR1mQeoaWYQ%40mail.gmail.com.