Moved several more components to resolveSingleFileKlib

This commit is contained in:
Alexander Gorshenev
2020-01-17 17:39:14 +03:00
committed by alexander-gorshenev
parent f3bc533073
commit 8c4fa6446d
3 changed files with 5 additions and 9 deletions
@@ -76,9 +76,8 @@ val KotlinLibrary.isBuiltIns: Boolean
// TODO: The only place loadKlib() is used now is Wasm backend.
// Need to move it to SearchPathResolver too.
// Otherwise there's no good way to choose between the components.
fun loadKlib(klibPath: String) =
createKotlinLibraryComponents(KFile(KFile(klibPath).absolutePath)).single()
resolveSingleFileKlib(KFile(KFile(klibPath).absolutePath))
val emptyLoggingContext = object : LoggingContext {
override var inVerbosePhase = false