summaryrefslogtreecommitdiff
path: root/java/java.go
diff options
context:
space:
mode:
authorMads Ager <ager@google.com>2020-12-03 12:21:14 +0100
committerMads Ager <ager@google.com>2020-12-03 12:23:55 +0100
commitad2bfda2858031367f0651a9441e8566ff34a4fa (patch)
tree76a004d81344f83a0bff75fae201f5adef2c3081 /java/java.go
parentf202e4e7933b52b2df2150177bf668d07799878f (diff)
Dogfood the new IR Kotlin compiler backend.
Test: make Test: atest com.android.systemui Change-Id: I610058001bde19554c55dee5a79ad1782abc3186
Diffstat (limited to 'java/java.go')
-rw-r--r--java/java.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/java/java.go b/java/java.go
index 9000f7478..f64c649a5 100644
--- a/java/java.go
+++ b/java/java.go
@@ -1446,6 +1446,9 @@ func (j *Module) compile(ctx android.ModuleContext, aaptSrcJar android.Path) {
kotlincFlags := j.properties.Kotlincflags
CheckKotlincFlags(ctx, kotlincFlags)
+ // Dogfood the JVM_IR backend.
+ kotlincFlags = append(kotlincFlags, "-Xuse-ir")
+
// If there are kotlin files, compile them first but pass all the kotlin and java files
// kotlinc will use the java files to resolve types referenced by the kotlin files, but
// won't emit any classes for them.