diff --git a/src/main/java/com/google/devtools/build/lib/rules/java/JavaOptions.java b/src/main/java/com/google/devtools/build/lib/rules/java/JavaOptions.java index 7c9ac260eb479f..2403231e48b7a9 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/java/JavaOptions.java +++ b/src/main/java/com/google/devtools/build/lib/rules/java/JavaOptions.java @@ -642,6 +642,7 @@ public FragmentOptions getExec() { exec.jvmOpts = ImmutableList.of("-XX:ErrorFile=/dev/stderr"); } else { exec.jvmOpts = hostJvmOpts; + exec.hostJvmOpts = hostJvmOpts; } exec.javacOpts = hostJavacOpts;