Add -Xno-optimized-callable-references to disable KT-27362 optimization

This argument is useful in situations where the stdlib version which the
code compiles against is different from the one which is available at
runtime, such as the case of kotlin-gradle-plugin, which depends on the
compiler/stdlib compiled by 1.4, but may be executed in Gradle where
only 1.3.x is available.

 #KT-37435
This commit is contained in:
Alexander Udalov
2020-03-12 14:04:37 +01:00
parent ae4629a5a6
commit a9f7ff254b
6 changed files with 22 additions and 3 deletions
@@ -119,4 +119,7 @@ public class JVMConfigurationKeys {
public static final CompilerConfigurationKey<Boolean> IS_IR_WITH_STABLE_ABI =
CompilerConfigurationKey.create("Is IR with stable ABI");
public static final CompilerConfigurationKey<Boolean> NO_OPTIMIZED_CALLABLE_REFERENCES =
CompilerConfigurationKey.create("Do not use optimized callable reference superclasses available from 1.4");
}