Preserve LanguageVersionSettings in buildKtModuleProviderByCompilerConfiguration
This commit is contained in:
committed by
Space Team
parent
1c0082e4d6
commit
638cbd4d8e
+4
@@ -184,8 +184,11 @@ internal fun buildKtModuleProviderByCompilerConfiguration(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
val configLanguageVersionSettings = compilerConfig[CommonConfigurationKeys.LANGUAGE_VERSION_SETTINGS]
|
||||||
|
|
||||||
for (scriptFile in scriptFiles) {
|
for (scriptFile in scriptFiles) {
|
||||||
buildKtScriptModule {
|
buildKtScriptModule {
|
||||||
|
configLanguageVersionSettings?.let { this.languageVersionSettings = it }
|
||||||
this.project = project
|
this.project = project
|
||||||
this.platform = platform
|
this.platform = platform
|
||||||
this.file = scriptFile
|
this.file = scriptFile
|
||||||
@@ -195,6 +198,7 @@ internal fun buildKtModuleProviderByCompilerConfiguration(
|
|||||||
}
|
}
|
||||||
|
|
||||||
buildKtSourceModule {
|
buildKtSourceModule {
|
||||||
|
configLanguageVersionSettings?.let { this.languageVersionSettings = it }
|
||||||
this.project = project
|
this.project = project
|
||||||
this.platform = platform
|
this.platform = platform
|
||||||
this.moduleName = compilerConfig.get(CommonConfigurationKeys.MODULE_NAME) ?: "<no module name provided>"
|
this.moduleName = compilerConfig.get(CommonConfigurationKeys.MODULE_NAME) ?: "<no module name provided>"
|
||||||
|
|||||||
Reference in New Issue
Block a user