Merge "Dogfood the new IR Kotlin compiler backend." am: cf8b2ee16e
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1515505 Change-Id: I3fd93fd7633f78f12093af3b690b762f42e7f35d
This commit is contained in:
commit
ac0b51ec1d
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue