[JS IR] Fix js compiler arguments

This commit is contained in:
Ilya Goncharov
2022-09-19 20:29:34 +02:00
committed by teamcity
parent 3d1db387f7
commit 4906f17d09
3 changed files with 4 additions and 4 deletions
@@ -243,7 +243,7 @@ class K2JsIrCompiler : CLICompiler<K2JSCompilerArguments>() {
} }
if (outputName == null) { 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 return ExitCode.COMPILATION_ERROR
} }
+2 -2
View File
@@ -21,7 +21,7 @@ where advanced options include:
Lambda expressions that capture values are translated into in-line anonymous JavaScript functions 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-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-minimized-member-names Perform minimization for names of members
-Xir-module-name=<name> Specify a compilation module name for IR backend -Xir-klib-module-name=<name> Specify a compilation module name for IR backend
-Xir-new-ir2js New fragment-based ir2js -Xir-new-ir2js New fragment-based ir2js
-Xir-only Disables pre-IR backend -Xir-only Disables pre-IR backend
-Xir-per-file Splits generated .js per-file -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 Enable runtime diagnostics when access safely to boolean in external declarations
-Xlegacy-deprecated-no-warn Disable warnings of deprecation of legacy compiler -Xlegacy-deprecated-no-warn Disable warnings of deprecation of legacy compiler
-Xmetadata-only Generate *.meta.js and *.kjsm files only -Xmetadata-only Generate *.meta.js and *.kjsm files only
-Xir-module-name Base name of generated files
-Xir-output-dir=<directory> Destination for generated files -Xir-output-dir=<directory> Destination for generated files
-Xir-output-name Base name of generated files
-Xpartial-linkage Allow unlinked symbols -Xpartial-linkage Allow unlinked symbols
-Xrepositories=<path> Paths to additional places where libraries could be found -Xrepositories=<path> 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. -Xstrict-implicit-export-types Generate strict types for implicitly exported entities inside d.ts files. Available in IR backend only.
@@ -70,7 +70,7 @@ class JsIrAnalysisHandlerExtensionTest : TestCaseWithTmpdir() {
"-Xplugin=$plugin", "-Xplugin=$plugin",
"-libraries", libs, "-libraries", libs,
"-Xir-output-dir", outputFile.parentFile.path, "-Xir-output-dir", outputFile.parentFile.path,
"-Xir-output-name", outputFile.nameWithoutExtension, "-Xir-module-name", outputFile.nameWithoutExtension,
mainKt.absolutePath mainKt.absolutePath
) )
CompilerTestUtil.executeCompilerAssertSuccessful(compiler, args + extras) CompilerTestUtil.executeCompilerAssertSuccessful(compiler, args + extras)