aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com
diff options
context:
space:
mode:
authorGravatar Googler <noreply@google.com>2016-11-30 15:37:19 +0000
committerGravatar Irina Iancu <elenairina@google.com>2016-12-01 10:13:46 +0000
commit5fe7230880cdb87ade113980a2d2351b6a7f64ea (patch)
treed903847df1cb7e0adaced28c494b4dd75f356d00 /src/main/java/com
parentc182908910a370b490e7e027b867e11f9f2fb086 (diff)
Start removing flag for rclass generator (make nop)
Flip option default to true to mirror flag flip and make the option a nop. After that we can remove the flag reference, and then we can remove the actual option. RELNOTES: --{no}experimental_use_rclass_generator is now a nop. It's been on by default for a while, and there are no references, so seems safe to remove. -- MOS_MIGRATED_REVID=140602921
Diffstat (limited to 'src/main/java/com')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/android/AndroidCommon.java4
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/android/AndroidConfiguration.java9
2 files changed, 3 insertions, 10 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/android/AndroidCommon.java b/src/main/java/com/google/devtools/build/lib/rules/android/AndroidCommon.java
index 2105496744..31ac2bedb1 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/android/AndroidCommon.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/android/AndroidCommon.java
@@ -563,9 +563,7 @@ public class AndroidCommon {
// Use a fast-path R class generator for android_binary with local resources, where there is
// a bottleneck. For legacy resources, the srcjar and R class compiler don't match up
// (the legacy srcjar requires the createJarJar step below).
- boolean useRClassGenerator =
- getAndroidConfig(ruleContext).useRClassGenerator()
- && isBinary && !resourceApk.isLegacy();
+ boolean useRClassGenerator = isBinary && !resourceApk.isLegacy();
compileResources(javaSemantics, resourceApk, resourcesJar, artifactsBuilder, attributes,
filesBuilder, jarsProducedForRuntime, useRClassGenerator);
if (resourceApk.isLegacy()) {
diff --git a/src/main/java/com/google/devtools/build/lib/rules/android/AndroidConfiguration.java b/src/main/java/com/google/devtools/build/lib/rules/android/AndroidConfiguration.java
index cab35ff18d..561b1cf239 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/android/AndroidConfiguration.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/android/AndroidConfiguration.java
@@ -373,8 +373,9 @@ public class AndroidConfiguration extends BuildConfiguration.Fragment {
// Do not use on the command line.
// The idea is that once this option works, we'll flip the default value in a config file, then
// once it is proven that it works, remove it from Bazel and said config file.
+ // This is now on by default and the flag is a noop and will be removed in a future release.
@Option(name = "experimental_use_rclass_generator",
- defaultValue = "false",
+ defaultValue = "true",
category = "undocumented",
help = "Use the specialized R class generator to build the final app and lib R classes.")
public boolean useRClassGenerator;
@@ -480,7 +481,6 @@ public class AndroidConfiguration extends BuildConfiguration.Fragment {
private final boolean useRexToCompressDexFiles;
private final boolean allowAndroidLibraryDepsWithoutSrcs;
private final boolean useAndroidResourceShrinking;
- private final boolean useRClassGenerator;
private final boolean useParallelResourceProcessing;
private final AndroidManifestMerger manifestMerger;
private final ApkSigningMethod apkSigningMethod;
@@ -506,7 +506,6 @@ public class AndroidConfiguration extends BuildConfiguration.Fragment {
this.desugarJava8 = options.desugarJava8;
this.allowAndroidLibraryDepsWithoutSrcs = options.allowAndroidLibraryDepsWithoutSrcs;
this.useAndroidResourceShrinking = options.useAndroidResourceShrinking;
- this.useRClassGenerator = options.useRClassGenerator;
this.useParallelResourceProcessing = options.useParallelResourceProcessing;
this.manifestMerger = options.manifestMerger;
this.apkSigningMethod = options.apkSigningMethod;
@@ -581,10 +580,6 @@ public class AndroidConfiguration extends BuildConfiguration.Fragment {
return useAndroidResourceShrinking;
}
- public boolean useRClassGenerator() {
- return useRClassGenerator;
- }
-
public boolean useParallelResourceProcessing() {
return useParallelResourceProcessing;
}