Use new lookup tracker only when experimental incremental compilation is enabled

This commit is contained in:
Alexey Tsvetkov
2015-10-30 17:46:32 +03:00
parent 7ebc58c690
commit 67878fe13a
4 changed files with 57 additions and 11 deletions
@@ -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));