aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/rules/java/JavaOptions.java
diff options
context:
space:
mode:
authorGravatar brandjon <brandjon@google.com>2017-06-16 21:27:56 +0200
committerGravatar Philipp Wollermann <philwo@google.com>2017-06-19 18:24:05 +0200
commit4929ad79865f8c13ef3b33c827040f4a037e4afe (patch)
treec97035c6f60aba479384bf95ccd5ec348d8781e7 /src/main/java/com/google/devtools/build/lib/rules/java/JavaOptions.java
parent9e26369575f04776c0416fd75a9434a22b4d5e9a (diff)
Automated g4 rollback of commit 923d7df521f67d031b288180560848bd35e20976.
*** Reason for rollback *** Breaks dozens of targets in the nightly with Tool Failure errors *** Original change description *** Clean up turbine action creation Support disabling javac fallback for actions without a direct classpath, and only use the 'JavacTurbine' mnemonic for spawns that require javac-turbine due to annotation processing to make it easier to collect metrics on that. Finally, remove --java_header_compilation_direct_classpath now that it has been productionized and enabled by default. PiperOrigin-RevId: 159260596
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/java/JavaOptions.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/java/JavaOptions.java10
1 files changed, 10 insertions, 0 deletions
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 f5764e6a18..55f83e5395 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
@@ -417,6 +417,15 @@ public class JavaOptions extends FragmentOptions {
public boolean strictDepsJavaProtos;
@Option(
+ name = "java_header_compilation_direct_classpath",
+ defaultValue = "true",
+ optionUsageRestrictions = OptionUsageRestrictions.UNDOCUMENTED,
+ help = "Experimental option to limit the header compilation classpath to direct deps.",
+ oldName = "experimental_java_header_compilation_direct_classpath"
+ )
+ public boolean headerCompilationDirectClasspath;
+
+ @Option(
name = "experimental_java_header_compilation_disable_javac_fallback",
defaultValue = "false",
optionUsageRestrictions = OptionUsageRestrictions.UNDOCUMENTED,
@@ -454,6 +463,7 @@ public class JavaOptions extends FragmentOptions {
// incremental build performance is important.
host.useIjars = useIjars;
host.headerCompilation = headerCompilation;
+ host.headerCompilationDirectClasspath = headerCompilationDirectClasspath;
host.headerCompilationDisableJavacFallback = headerCompilationDisableJavacFallback;
host.javaDeps = javaDeps;