aboutsummaryrefslogtreecommitdiffstats
path: root/java/dexpreopt_test.go
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2019-01-05 22:13:05 -0800
committerColin Cross <ccross@android.com>2019-01-06 08:50:36 -0800
commitdc2da916fb1966fe0fb7a559542aa076ba29898c (patch)
treeecd54616b2a897247d952be516801d1ba02e5418 /java/dexpreopt_test.go
parente302687ea453099e7b61bf7dc585f10ea6ae97eb (diff)
downloadandroid_build_soong-dc2da916fb1966fe0fb7a559542aa076ba29898c.tar.gz
android_build_soong-dc2da916fb1966fe0fb7a559542aa076ba29898c.tar.bz2
android_build_soong-dc2da916fb1966fe0fb7a559542aa076ba29898c.zip
Don't dexpreopt when compile_dex but not installable
Modules shouldn't be dexpreopted and possibly stripped when compile_dex is set but installable is not set. This matches the previous behavior when the dexpreopt rules were in Make. Bug: 121317615 Test: dexpreopt_test.go Change-Id: I6f80b7b37a990c475b91aa5d98a19a3baa85eb1b
Diffstat (limited to 'java/dexpreopt_test.go')
-rw-r--r--java/dexpreopt_test.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/java/dexpreopt_test.go b/java/dexpreopt_test.go
index e4c80dde..6838bd2c 100644
--- a/java/dexpreopt_test.go
+++ b/java/dexpreopt_test.go
@@ -109,6 +109,16 @@ func TestDexpreoptEnabled(t *testing.T) {
}`,
enabled: false,
},
+ {
+ name: "compile_dex",
+ bp: `
+ java_library {
+ name: "foo",
+ srcs: ["a.java"],
+ compile_dex: true,
+ }`,
+ enabled: false,
+ },
}
for _, test := range tests {