Use new lookup tracker only when experimental incremental compilation is enabled
This commit is contained in:
@@ -20,6 +20,11 @@ import org.jetbrains.annotations.TestOnly;
|
||||
|
||||
public class IncrementalCompilation {
|
||||
private static final String INCREMENTAL_COMPILATION_PROPERTY = "kotlin.incremental.compilation";
|
||||
private static final String IS_EXPERIMENTAL_PROPERTY = "kotlin.incremental.compilation.experimental";
|
||||
|
||||
public static boolean isExperimental() {
|
||||
return "true".equals(System.getProperty(IS_EXPERIMENTAL_PROPERTY));
|
||||
}
|
||||
|
||||
public static boolean isEnabled() {
|
||||
return !"false".equals(System.getProperty(INCREMENTAL_COMPILATION_PROPERTY));
|
||||
|
||||
Reference in New Issue
Block a user