diff --git a/build-common/src/org/jetbrains/kotlin/incremental/LookupStorage.kt b/build-common/src/org/jetbrains/kotlin/incremental/LookupStorage.kt index ab92ac4af83..93f1fa1707f 100644 --- a/build-common/src/org/jetbrains/kotlin/incremental/LookupStorage.kt +++ b/build-common/src/org/jetbrains/kotlin/incremental/LookupStorage.kt @@ -155,7 +155,7 @@ open class LookupStorage( size = 0 deletedCount = 0 - for ((file, oldId) in oldFileToId.entries) { + for ((file, oldId) in oldFileToId.entries.sortedBy { it.key.path }) { val newId = addFileIfNeeded(file) oldIdToNewId[oldId] = newId }