Enable disabling incremental compilation for tests

This commit is contained in:
Alexey Tsvetkov
2015-09-24 23:26:53 +03:00
parent b6bbc4015b
commit 68437175f6
8 changed files with 30 additions and 14 deletions
@@ -247,7 +247,7 @@ public class MultifileClassCodegen(
}
private fun getCompiledPackageFragment(packageFqName: FqName, state: GenerationState): PackageFragmentDescriptor? =
if (!IncrementalCompilation.ENABLED) null
if (!IncrementalCompilation.isEnabled()) null
else state.module.getPackage(packageFqName).fragments.firstOrNull { fragment ->
fragment is IncrementalPackageFragmentProvider.IncrementalPackageFragment &&
fragment.target == state.targetId
@@ -141,7 +141,7 @@ public class PackageCodegen {
@Nullable
private PackageFragmentDescriptor getCompiledPackageFragment(@NotNull FqName fqName) {
if (!IncrementalCompilation.ENABLED) {
if (!IncrementalCompilation.isEnabled()) {
return null;
}