Introduce -Xcommon-sources and pass it correctly from build tool plugins

#KT-25196 In Progress

Original commit: 0f003802fe
This commit is contained in:
Alexander Udalov
2018-07-27 14:15:12 +02:00
parent bf4565259b
commit 9c21dae5e2
4 changed files with 26 additions and 18 deletions
@@ -150,6 +150,7 @@ class KotlinJvmModuleBuildTarget(compileContext: CompileContext, jpsModuleBuildT
val friendDirs = target.friendOutputDirs
val moduleSources = collectSourcesToCompile(target, dirtyFilesHolder)
val commonSources = emptyList<File>() // TODO: pass common sources here
val hasDirtyOrRemovedSources = checkShouldCompileAndLog(target, dirtyFilesHolder, moduleSources)
if (hasDirtyOrRemovedSources) hasDirtySources = true
@@ -160,6 +161,7 @@ class KotlinJvmModuleBuildTarget(compileContext: CompileContext, jpsModuleBuildT
moduleSources,
target.findSourceRoots(context),
target.findClassPathRoots(),
commonSources,
target.findModularJdkRoot(),
kotlinModuleId.type,
isTests,