Ignore unrecognized VM options in desugar.sh, such as the JVM 9 flags to silence warnings.
This prevents stopping the build when invoking desugar with JDK 8.
RELNOTES: None.
@@ -122,6 +122,7 @@ if [[ "$#" -gt 0 ]]; then
done
"${DESUGAR}" \
+ "--jvm_flag=-XX:+IgnoreUnrecognizedVMOptions" \
"--jvm_flags=--add-opens=java.base/java.lang.invoke=ALL-UNNAMED" \
"--jvm_flags=--add-opens=java.base/java.nio=ALL-UNNAMED" \
"--jvm_flags=--add-opens=java.base/java.lang=ALL-UNNAMED" \
@@ -134,6 +135,7 @@ if [[ "$#" -gt 0 ]]; then
fi
"${DESUGAR}" \
+ "--jvm_flag=-XX:+IgnoreUnrecognizedVMOptions" \
"--jvm_flags=--add-opens=java.base/java.lang.invoke=ALL-UNNAMED" \
"--jvm_flags=--add-opens=java.base/java.nio=ALL-UNNAMED" \
"--jvm_flags=--add-opens=java.base/java.lang=ALL-UNNAMED" \
