Enable disabling incremental compilation for tests
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user