[JS_IR] Use new plugin to build Kotlin/JS stdlib with IR compiler
- Switch to building stdlib with bootstrap compiler since IR is stable enough - Build stdlib with coreLibs by default - Include JS IR stdlib to kotlin distribution
This commit is contained in:
+1
-1
@@ -31,7 +31,7 @@ import kotlin.script.experimental.jvm.JsDependency
|
||||
fun loadScriptConfiguration(configuration: CompilerConfiguration) {
|
||||
val scriptConfiguration = ScriptCompilationConfiguration {
|
||||
baseClass("kotlin.Any")
|
||||
dependencies.append(JsDependency("libraries/stdlib/js-ir/build/fullRuntime/klib"))
|
||||
dependencies.append(JsDependency("libraries/stdlib/js-ir/build/classes/kotlin/js/main/"))
|
||||
platform.put("JS")
|
||||
}
|
||||
configuration.add(
|
||||
|
||||
+1
-1
@@ -149,7 +149,7 @@ fun createCompileResult(lineId: LineId, code: String): ReplCompileResult.Compile
|
||||
|
||||
class DependencyLoader {
|
||||
// TODO: this should be taken from CompilerConfiguration
|
||||
private val commonPath = "libraries/stdlib/js-ir/build/fullRuntime/klib"
|
||||
private val commonPath = "libraries/stdlib/js-ir/build/classes/kotlin/js/main/"
|
||||
private val mappedNamesPath = "$commonPath/mappedNames.txt"
|
||||
private val scriptDependencyBinaryPath = "$commonPath/scriptDependencyBinary.js"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user