From dda713d6fc0c4fa8708af9464563313d844ac73b Mon Sep 17 00:00:00 2001 From: Tobias Thierer Date: Wed, 19 Sep 2018 16:16:19 +0100 Subject: Allow patch_module attribute in target: { android: { ... } } block. patch_module is currently only used for non-host targets, although there's a slim chance that there might be use cases on host in future. Currently, the only use case is patch_module: "java.base" in device targets. To avoid erroneously carrying the patch_module attribute over into the host version of the target, this CL lets them place it into the target: { android: { ... } } block. Test: Treehugger Test: EXPERIMENTAL_USE_OPENJDK9=true make android-icu4j-tests Bug: 115604102 Change-Id: If025d503d9c5681748a502a1d7433e8dbec3cac1 --- java/java.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'java/java.go') diff --git a/java/java.go b/java/java.go index ae7a6e02c..3332482c3 100644 --- a/java/java.go +++ b/java/java.go @@ -138,7 +138,7 @@ type CompilerProperties struct { // supported at compile time. It should only be needed to compile tests in // packages that exist in libcore and which are inconvenient to move // elsewhere. - Patch_module *string + Patch_module *string `android:"arch_variant"` Jacoco struct { // List of classes to include for instrumentation with jacoco to collect coverage -- cgit v1.2.3-59-g8ed1b