Add compatibility with templates from script-runtime...

and add script-runtime to the compilation classpath by default
This commit is contained in:
Ilya Chernikov
2018-09-03 17:19:04 +02:00
parent 6716c512d3
commit 6c60e38260
2 changed files with 16 additions and 0 deletions
@@ -134,6 +134,7 @@ class KJvmCompilerImpl(val hostConfiguration: ScriptingHostConfiguration) : KJvm
}
// TODO: implement logic similar to compiler's -no-stdlib (and -no-reflect?)
addRoot("kotlin.stdlib", KotlinJars.stdlib)
KotlinJars.scriptRuntimeOrNull?.let { addRoot("kotlin.script.runtime", it) }
put(CommonConfigurationKeys.MODULE_NAME, "kotlin-script") // TODO" take meaningful and valid name from somewhere
languageVersionSettings = LanguageVersionSettingsImpl(