aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/rules/android
diff options
context:
space:
mode:
authorGravatar Ulf Adams <ulfjack@google.com>2016-03-01 13:49:18 +0000
committerGravatar Kristina Chodorow <kchodorow@google.com>2016-03-01 19:13:32 +0000
commit7033850166b2c76e92fb684f460674c3f230e7b8 (patch)
tree8e349564aee5ca99768623ee18dd77fba87ae808 /src/main/java/com/google/devtools/build/lib/rules/android
parent9cad21f817237de333c09953eadc4e73b10a18e5 (diff)
Copy the android_crosstool_top into the host configuration.
If we don't do that, the host configuration still uses the default value, despite the invocation policy we apply internally. -- MOS_MIGRATED_REVID=115986998
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/android')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/android/AndroidConfiguration.java7
1 files changed, 7 insertions, 0 deletions
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 d29a57fe74..d3755b32cd 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
@@ -189,6 +189,13 @@ public class AndroidConfiguration extends BuildConfiguration.Fragment {
labelMap.put("android_sdk", sdk);
}
+ @Override
+ public FragmentOptions getHost(boolean fallback) {
+ Options host = (Options) super.getHost(fallback);
+ host.androidCrosstoolTop = androidCrosstoolTop;
+ return host;
+ }
+
// This method is here because Constants.ANDROID_DEFAULT_FAT_APK_CPUS cannot be a constant
// because we replace the class file in the .jar after compilation. However, that means that we
// cannot use it as an attribute value in an annotation.