Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ad2bfda2 authored by Mads Ager's avatar Mads Ager
Browse files

Dogfood the new IR Kotlin compiler backend.

Test: make
Test: atest com.android.systemui

Change-Id: I610058001bde19554c55dee5a79ad1782abc3186
parent f202e4e7
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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.