[JS IR] Change names of ir-only arguments

This commit is contained in:
Ilya Goncharov
2022-10-17 17:59:15 +02:00
committed by Space Team
parent 71011aeaef
commit ca8b415726
4 changed files with 6 additions and 7 deletions
@@ -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
}