[K/N] Fixed a dependency tracking bug
This commit is contained in:
+2
-2
@@ -140,11 +140,11 @@ internal class DependenciesTrackerImpl(private val generationState: NativeGenera
|
|||||||
|
|
||||||
var isNewDependency = usedBitcode.add(library)
|
var isNewDependency = usedBitcode.add(library)
|
||||||
if (!onlyBitcode) {
|
if (!onlyBitcode) {
|
||||||
isNewDependency = isNewDependency || usedNativeDependencies.add(library)
|
isNewDependency = usedNativeDependencies.add(library) || isNewDependency
|
||||||
}
|
}
|
||||||
|
|
||||||
libraryFile?.let {
|
libraryFile?.let {
|
||||||
isNewDependency = isNewDependency || usedBitcodeOfFile.add(it)
|
isNewDependency = usedBitcodeOfFile.add(it) || isNewDependency
|
||||||
}
|
}
|
||||||
|
|
||||||
require(!(sealed && isNewDependency)) { "The dependencies have been sealed off" }
|
require(!(sealed && isNewDependency)) { "The dependencies have been sealed off" }
|
||||||
|
|||||||
Reference in New Issue
Block a user