[JS IR] Change module name compiler flags

This commit is contained in:
Ilya Goncharov
2022-10-17 16:28:38 +02:00
committed by Space Team
parent a32b2c4a3f
commit ec50036884
3 changed files with 4 additions and 5 deletions
@@ -35,7 +35,7 @@ class K2JSCompilerArguments : CommonCompilerArguments() {
value = DefaultValues.StringNullDefault::class,
gradleInputType = GradleInputTypes.INPUT
)
@Argument(value = "-Xir-module-name", description = "Base name of generated files")
@Argument(value = "-module-name", description = "Base name of generated files")
var moduleName: String? by NullableStringFreezableVar(null)
@GradleOption(
@@ -204,7 +204,7 @@ class K2JSCompilerArguments : CommonCompilerArguments() {
var irOnly: Boolean by FreezableVar(false)
@Argument(
value = "-Xir-klib-module-name",
value = "-Xir-module-name",
valueDescription = "<name>",
description = "Specify a compilation module name for IR backend"
)
+1 -2
View File
@@ -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-klib-module-name=<name> Specify a compilation module name for IR backend
-Xir-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,7 +38,6 @@ 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
-Xpartial-linkage Allow unlinked symbols
-Xrepositories=<path> Paths to additional places where libraries could be found
@@ -22,7 +22,7 @@ internal const val PRODUCE_ZIPPED_KLIB = "-Xir-produce-klib-file"
internal const val MINIMIZED_MEMBER_NAMES = "-Xir-minimized-member-names"
internal const val KLIB_MODULE_NAME = "-Xir-klib-module-name"
internal const val KLIB_MODULE_NAME = "-Xir-module-name"
internal const val PER_MODULE = "-Xir-per-module"
internal const val PER_MODULE_OUTPUT_NAME = "-Xir-per-module-output-name"