[IC] Allow to not specify the modules info
This commit is contained in:
committed by
Space Team
parent
e33611a88a
commit
b3677fa0ca
-1
@@ -397,7 +397,6 @@ internal open class GradleCompilerRunner(
|
||||
}
|
||||
|
||||
return IncrementalModuleInfo(
|
||||
projectRoot = gradle.rootProject.projectDir,
|
||||
rootProjectBuildDir = gradle.rootProject.buildDir,
|
||||
dirToModule = dirToModule,
|
||||
nameToModules = nameToModules,
|
||||
|
||||
+1
@@ -330,6 +330,7 @@ internal class GradleKotlinCompilerWork @Inject constructor(
|
||||
outputFiles = outputFiles,
|
||||
multiModuleICSettings = icEnv.multiModuleICSettings,
|
||||
modulesInfo = incrementalModuleInfo!!,
|
||||
rootProjectDir = icEnv.rootProjectDir,
|
||||
kotlinScriptExtensions = kotlinScriptExtensions,
|
||||
withAbiSnapshot = icEnv.withAbiSnapshot,
|
||||
preciseCompilationResultsBackup = icEnv.preciseCompilationResultsBackup,
|
||||
|
||||
+1
@@ -15,6 +15,7 @@ internal class IncrementalCompilationEnvironment(
|
||||
val changedFiles: ChangedFiles,
|
||||
val classpathChanges: ClasspathChanges,
|
||||
val workingDir: File,
|
||||
val rootProjectDir: File,
|
||||
val usePreciseJavaTracking: Boolean = false,
|
||||
val disableMultiModuleIC: Boolean = false,
|
||||
val multiModuleICSettings: MultiModuleICSettings,
|
||||
|
||||
+1
@@ -328,6 +328,7 @@ abstract class Kotlin2JsCompile @Inject constructor(
|
||||
getChangedFiles(inputChanges, incrementalProps),
|
||||
ClasspathChanges.NotAvailableForJSCompiler,
|
||||
taskBuildCacheableOutputDirectory.get().asFile,
|
||||
projectRootDir,
|
||||
multiModuleICSettings = multiModuleICSettings,
|
||||
preciseCompilationResultsBackup = preciseCompilationResultsBackup.get(),
|
||||
keepIncrementalCompilationCachesInMemory = keepIncrementalCompilationCachesInMemory.get(),
|
||||
|
||||
+3
@@ -302,6 +302,8 @@ abstract class KotlinCompile @Inject constructor(
|
||||
}
|
||||
}
|
||||
|
||||
private val projectRootDir = project.rootDir
|
||||
|
||||
override fun callCompilerAsync(
|
||||
args: K2JVMCompilerArguments,
|
||||
inputChanges: InputChanges,
|
||||
@@ -323,6 +325,7 @@ abstract class KotlinCompile @Inject constructor(
|
||||
changedFiles = getChangedFiles(inputChanges, incrementalProps),
|
||||
classpathChanges = getClasspathChanges(inputChanges),
|
||||
workingDir = taskBuildCacheableOutputDirectory.get().asFile,
|
||||
rootProjectDir = projectRootDir,
|
||||
usePreciseJavaTracking = usePreciseJavaTracking,
|
||||
disableMultiModuleIC = disableMultiModuleIC,
|
||||
multiModuleICSettings = multiModuleICSettings,
|
||||
|
||||
Reference in New Issue
Block a user