diff --git a/compiler/cli/cli-js/src/org/jetbrains/kotlin/cli/js/K2JsIrCompiler.kt b/compiler/cli/cli-js/src/org/jetbrains/kotlin/cli/js/K2JsIrCompiler.kt index 8e66ddab771..8df7803f747 100644 --- a/compiler/cli/cli-js/src/org/jetbrains/kotlin/cli/js/K2JsIrCompiler.kt +++ b/compiler/cli/cli-js/src/org/jetbrains/kotlin/cli/js/K2JsIrCompiler.kt @@ -243,7 +243,7 @@ class K2JsIrCompiler : CLICompiler() { } if (outputName == null) { - messageCollector.report(ERROR, "IR: Specify output name via -Xir-output-name", null) + messageCollector.report(ERROR, "IR: Specify output name via -Xir-module-name", null) return ExitCode.COMPILATION_ERROR } diff --git a/compiler/testData/cli/js/jsExtraHelp.out b/compiler/testData/cli/js/jsExtraHelp.out index f02d8871066..1289059a17f 100644 --- a/compiler/testData/cli/js/jsExtraHelp.out +++ b/compiler/testData/cli/js/jsExtraHelp.out @@ -21,7 +21,7 @@ where advanced options include: Lambda expressions that capture values are translated into in-line anonymous JavaScript functions -Xir-keep Comma-separated list of fully-qualified names to not be eliminated by DCE (if it can be reached), and for which to keep non-minified names. -Xir-minimized-member-names Perform minimization for names of members - -Xir-module-name= Specify a compilation module name for IR backend + -Xir-klib-module-name= Specify a compilation module name for IR backend -Xir-new-ir2js New fragment-based ir2js -Xir-only Disables pre-IR backend -Xir-per-file Splits generated .js per-file @@ -38,8 +38,8 @@ where advanced options include: Enable runtime diagnostics when access safely to boolean in external declarations -Xlegacy-deprecated-no-warn Disable warnings of deprecation of legacy compiler -Xmetadata-only Generate *.meta.js and *.kjsm files only + -Xir-module-name Base name of generated files -Xir-output-dir= Destination for generated files - -Xir-output-name Base name of generated files -Xpartial-linkage Allow unlinked symbols -Xrepositories= Paths to additional places where libraries could be found -Xstrict-implicit-export-types Generate strict types for implicitly exported entities inside d.ts files. Available in IR backend only. diff --git a/js/js.tests/test/org/jetbrains/kotlin/integration/JsIrAnalysisHandlerExtensionTest.kt b/js/js.tests/test/org/jetbrains/kotlin/integration/JsIrAnalysisHandlerExtensionTest.kt index f0a0eadf97d..30a5b41b481 100644 --- a/js/js.tests/test/org/jetbrains/kotlin/integration/JsIrAnalysisHandlerExtensionTest.kt +++ b/js/js.tests/test/org/jetbrains/kotlin/integration/JsIrAnalysisHandlerExtensionTest.kt @@ -70,7 +70,7 @@ class JsIrAnalysisHandlerExtensionTest : TestCaseWithTmpdir() { "-Xplugin=$plugin", "-libraries", libs, "-Xir-output-dir", outputFile.parentFile.path, - "-Xir-output-name", outputFile.nameWithoutExtension, + "-Xir-module-name", outputFile.nameWithoutExtension, mainKt.absolutePath ) CompilerTestUtil.executeCompilerAssertSuccessful(compiler, args + extras)