It should be --time, not -time.

It should be -list_targets, not --list_targets.
The -list should better be -list_phases now that we have several sets to list.
This commit is contained in:
Alexander Gorshenev
2017-03-28 02:39:29 +03:00
committed by alexander-gorshenev
parent e8327bc4f8
commit 89ea6396f6
3 changed files with 5 additions and 5 deletions
@@ -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("<Phase>")
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")
@@ -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
}
+2 -2
View File
@@ -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