[JS, IR] Wasm with outputDir and outputName

This commit is contained in:
Ilya Goncharov
2022-07-29 11:31:44 +02:00
committed by teamcity
parent f320efedd3
commit 9685b0a86b
@@ -416,9 +416,7 @@ class K2JsIrCompiler : CLICompiler<K2JSCompilerArguments>() {
sourceModule
}
if (arguments.wasm) {
val outputFile = File(arguments.outputFile)
val (allModules, backendContext) = compileToLoweredIr(
depsDescriptors = module,
phaseConfig = PhaseConfig(wasmPhases),
@@ -439,8 +437,8 @@ class K2JsIrCompiler : CLICompiler<K2JSCompilerArguments>() {
writeCompilationResult(
result = res,
dir = outputFile.parentFile,
fileNameBase = outputFile.nameWithoutExtension
dir = outputDir,
fileNameBase = outputName
)
return OK