[PL] Fix: Don't run partial linkage on early stages when no external dependencies have been loaded yet

This commit is contained in:
Dmitriy Dolovov
2023-04-17 19:19:44 +02:00
committed by Space Team
parent 000cf47c21
commit 87125d0703
13 changed files with 44 additions and 24 deletions
@@ -559,7 +559,7 @@ class GenerateIrRuntime {
ExternalDependenciesGenerator(symbolTable, listOf(jsLinker))
.generateUnboundSymbolsAsDependencies()
jsLinker.postProcess()
jsLinker.postProcess(inOrAfterLinkageStep = true)
moduleFragment.patchDeclarationParents()
@@ -585,7 +585,7 @@ class GenerateIrRuntime {
ExternalDependenciesGenerator(symbolTable, listOf(jsLinker))
.generateUnboundSymbolsAsDependencies()
jsLinker.postProcess()
jsLinker.postProcess(inOrAfterLinkageStep = true)
moduleFragment.patchDeclarationParents()