[JS IR] Use module name instead of output file wo extension
This commit is contained in:
committed by
TeamCityServer
parent
0e00186ca1
commit
eaf25b517d
@@ -161,9 +161,10 @@ class K2JsIrCompiler : CLICompiler<K2JSCompilerArguments>() {
|
||||
|
||||
val outputFile = File(outputFilePath)
|
||||
|
||||
val moduleName = arguments.irModuleName ?: FileUtil.getNameWithoutExtension(outputFile)
|
||||
configurationJs.put(
|
||||
CommonConfigurationKeys.MODULE_NAME,
|
||||
arguments.irModuleName ?: FileUtil.getNameWithoutExtension(outputFile)
|
||||
moduleName
|
||||
)
|
||||
|
||||
// TODO: in this method at least 3 different compiler configurations are used (original, env.configuration, jsConfig.configuration)
|
||||
@@ -206,7 +207,9 @@ class K2JsIrCompiler : CLICompiler<K2JSCompilerArguments>() {
|
||||
irFactory = PersistentIrFactory(), // TODO IrFactoryImpl?
|
||||
outputKlibPath = outputFile.path,
|
||||
nopack = arguments.irProduceKlibDir,
|
||||
jsOutputName = FileUtil.getNameWithoutExtension(outputFile),
|
||||
jsOutputName = moduleName
|
||||
.replace(":", "-")
|
||||
.replace(".", "-"),
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user