[JS IR] Change names of ir-only arguments
This commit is contained in:
committed by
Space Team
parent
71011aeaef
commit
ca8b415726
+2
-2
@@ -28,14 +28,14 @@ class K2JSCompilerArguments : CommonCompilerArguments() {
|
||||
@Argument(value = "-output", valueDescription = "<filepath>", description = "Destination *.js file for the compilation result")
|
||||
var outputFile: String? by NullableStringFreezableVar(null)
|
||||
|
||||
@Argument(value = "-Xir-output-dir", valueDescription = "<directory>", description = "Destination for generated files")
|
||||
@Argument(value = "-ir-output-dir", valueDescription = "<directory>", description = "Destination for generated files")
|
||||
var outputDir: String? by NullableStringFreezableVar(null)
|
||||
|
||||
@GradleOption(
|
||||
value = DefaultValues.StringNullDefault::class,
|
||||
gradleInputType = GradleInputTypes.INPUT
|
||||
)
|
||||
@Argument(value = "-module-name", description = "Base name of generated files")
|
||||
@Argument(value = "-ir-output-name", description = "Base name of generated files")
|
||||
var moduleName: String? by NullableStringFreezableVar(null)
|
||||
|
||||
@GradleOption(
|
||||
|
||||
@@ -234,12 +234,12 @@ class K2JsIrCompiler : CLICompiler<K2JSCompilerArguments>() {
|
||||
val outputDirPath = arguments.outputDir
|
||||
val outputName = arguments.moduleName
|
||||
if (outputDirPath == null) {
|
||||
messageCollector.report(ERROR, "IR: Specify output dir via -Xir-output-dir", null)
|
||||
messageCollector.report(ERROR, "IR: Specify output dir via -ir-output-dir", null)
|
||||
return COMPILATION_ERROR
|
||||
}
|
||||
|
||||
if (outputName == null) {
|
||||
messageCollector.report(ERROR, "IR: Specify output name via -Xir-module-name", null)
|
||||
messageCollector.report(ERROR, "IR: Specify output name via -ir-output-name", null)
|
||||
return COMPILATION_ERROR
|
||||
}
|
||||
|
||||
|
||||
-1
@@ -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-output-dir=<directory> Destination for 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.
|
||||
|
||||
+2
-2
@@ -69,8 +69,8 @@ class JsIrAnalysisHandlerExtensionTest : TestCaseWithTmpdir() {
|
||||
val args = listOf(
|
||||
"-Xplugin=$plugin",
|
||||
"-libraries", libs,
|
||||
"-Xir-output-dir", outputFile.parentFile.path,
|
||||
"-Xir-module-name", outputFile.nameWithoutExtension,
|
||||
"-ir-output-dir", outputFile.parentFile.path,
|
||||
"-ir-output-name", outputFile.nameWithoutExtension,
|
||||
mainKt.absolutePath
|
||||
)
|
||||
CompilerTestUtil.executeCompilerAssertSuccessful(compiler, args + extras)
|
||||
|
||||
Reference in New Issue
Block a user