[K/N] Fixed a problem with dependencies

-Xinclude-library should be treated exactly as source files -
the final binary should depend on all of them.

 #KT-64408 Fixed
This commit is contained in:
Igor Chevdar
2023-12-27 09:58:25 +02:00
committed by Space Team
parent c35e026259
commit 519c15419f
5 changed files with 1 additions and 9 deletions
@@ -193,7 +193,7 @@ internal class DependenciesTrackerImpl(
}
}
if (filesUsed.isEmpty()) {
if (filesUsed.isEmpty() || library in config.resolve.includedLibraries) {
// This is the case when we depend on the whole module rather than on a number of files.
moduleDependencies.add(library)
addAllDependencies(cache)