From ad2bfda2858031367f0651a9441e8566ff34a4fa Mon Sep 17 00:00:00 2001 From: Mads Ager Date: Thu, 3 Dec 2020 12:21:14 +0100 Subject: Dogfood the new IR Kotlin compiler backend. Test: make Test: atest com.android.systemui Change-Id: I610058001bde19554c55dee5a79ad1782abc3186 --- java/java.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'java/java.go') 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. -- cgit v1.2.3-59-g8ed1b