Merge "Dogfood the new IR Kotlin compiler backend."

This commit is contained in:
Treehugger Robot 2020-12-04 00:05:07 +00:00 committed by Gerrit Code Review
commit cf8b2ee16e
1 changed files with 3 additions and 0 deletions

View File

@ -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.