[PL] Fix: Don't run partial linkage on early stages when no external dependencies have been loaded yet
This commit is contained in:
committed by
Space Team
parent
000cf47c21
commit
87125d0703
@@ -120,7 +120,7 @@ fun compileIr(
|
||||
val irProviders = listOf(irLinker)
|
||||
ExternalDependenciesGenerator(symbolTable, irProviders).generateUnboundSymbolsAsDependencies()
|
||||
|
||||
irLinker.postProcess()
|
||||
irLinker.postProcess(inOrAfterLinkageStep = true)
|
||||
irLinker.checkNoUnboundSymbols(symbolTable, "at the end of IR linkage process")
|
||||
|
||||
allModules.forEach { module ->
|
||||
|
||||
+1
-1
@@ -71,7 +71,7 @@ internal data class LoadedJsIr(
|
||||
fun loadUnboundSymbols() {
|
||||
signatureProvidersImpl.clear()
|
||||
ExternalDependenciesGenerator(linker.symbolTable, listOf(linker)).generateUnboundSymbolsAsDependencies()
|
||||
linker.postProcess()
|
||||
linker.postProcess(inOrAfterLinkageStep = true)
|
||||
linker.checkNoUnboundSymbols(linker.symbolTable, "at the end of IR linkage process")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user