Skip to content

Commit

Permalink
Ignore unrecognized VM options in desugar.sh, such as the JVM 9 flags…
Browse files Browse the repository at this point in the history
… to silence warnings.

This prevents stopping the build when invoking desugar with JDK 8.

RELNOTES: None.
PiperOrigin-RevId: 210172285
  • Loading branch information
jin authored and Copybara-Service committed Aug 24, 2018
1 parent ef0000f commit 2e677fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/android/desugar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand All @@ -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" \
Expand Down

0 comments on commit 2e677fb

Please sign in to comment.