[JS IR] Fix js compiler arguments
This commit is contained in:
@@ -243,7 +243,7 @@ class K2JsIrCompiler : CLICompiler<K2JSCompilerArguments>() {
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -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=<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-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=<directory> Destination for generated files
|
||||
-Xir-output-name Base name of generated files
|
||||
-Xpartial-linkage Allow unlinked symbols
|
||||
-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.
|
||||
|
||||
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user