diff --git a/backend.native/cli.bc/src/org/jetbrains/kotlin/cli/bc/K2NativeCompilerArguments.java b/backend.native/cli.bc/src/org/jetbrains/kotlin/cli/bc/K2NativeCompilerArguments.java index e36f0f057f0..bb89176ca88 100644 --- a/backend.native/cli.bc/src/org/jetbrains/kotlin/cli/bc/K2NativeCompilerArguments.java +++ b/backend.native/cli.bc/src/org/jetbrains/kotlin/cli/bc/K2NativeCompilerArguments.java @@ -51,7 +51,7 @@ public class K2NativeCompilerArguments extends CommonCompilerArguments { // The rest of the options are only interesting for developers. // Make sure to prepend them with double dash. - @Argument(value = "list_targets", prefix = "--", description = "List available hardware targets") + @Argument(value = "list_targets", description = "List available hardware targets") public boolean listTargets; @Argument(value = "print_ir", prefix = "--", description = "Print IR") @@ -87,7 +87,7 @@ public class K2NativeCompilerArguments extends CommonCompilerArguments { @ValueDescription("") public String[] verbosePhases; - @Argument(value = "list", prefix = "--", description = "List all backend phases") + @Argument(value = "list_phases", prefix = "--", description = "List all backend phases") public boolean listPhases; @Argument(value = "time", prefix = "--", description = "Report execution time for compiler phases") diff --git a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/KonanPhases.kt b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/KonanPhases.kt index 72996c5902b..9301cad1f8a 100644 --- a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/KonanPhases.kt +++ b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/KonanPhases.kt @@ -48,7 +48,7 @@ object KonanPhases { fun known(name: String): String { if (phases[name] == null) { - error("Unknown phase: $name. Use -list to see the list of phases.") + error("Unknown phase: $name. Use --list_phases to see the list of phases.") } return name } diff --git a/cmd/konanc b/cmd/konanc index 9c05f1a1cbc..1aa0faf4204 100755 --- a/cmd/konanc +++ b/cmd/konanc @@ -24,8 +24,8 @@ while [ $# -gt 0 ]; do echo "TODO: need to pass arguments to all the tools somehow." shift ;; - -time) - konan_args=("${konan_args[@]}" -time) + --time) + konan_args=("${konan_args[@]}" --time) java_args=("${java_args[@]}" -agentlib:hprof=cpu=samples -Dkonan.profile=true) JAVACMD="time $JAVACMD" shift