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:
committed by
alexander-gorshenev
parent
e8327bc4f8
commit
89ea6396f6
+2
-2
@@ -51,7 +51,7 @@ public class K2NativeCompilerArguments extends CommonCompilerArguments {
|
|||||||
// The rest of the options are only interesting for developers.
|
// The rest of the options are only interesting for developers.
|
||||||
// Make sure to prepend them with double dash.
|
// 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;
|
public boolean listTargets;
|
||||||
|
|
||||||
@Argument(value = "print_ir", prefix = "--", description = "Print IR")
|
@Argument(value = "print_ir", prefix = "--", description = "Print IR")
|
||||||
@@ -87,7 +87,7 @@ public class K2NativeCompilerArguments extends CommonCompilerArguments {
|
|||||||
@ValueDescription("<Phase>")
|
@ValueDescription("<Phase>")
|
||||||
public String[] verbosePhases;
|
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;
|
public boolean listPhases;
|
||||||
|
|
||||||
@Argument(value = "time", prefix = "--", description = "Report execution time for compiler phases")
|
@Argument(value = "time", prefix = "--", description = "Report execution time for compiler phases")
|
||||||
|
|||||||
+1
-1
@@ -48,7 +48,7 @@ object KonanPhases {
|
|||||||
|
|
||||||
fun known(name: String): String {
|
fun known(name: String): String {
|
||||||
if (phases[name] == null) {
|
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
|
return name
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -24,8 +24,8 @@ while [ $# -gt 0 ]; do
|
|||||||
echo "TODO: need to pass arguments to all the tools somehow."
|
echo "TODO: need to pass arguments to all the tools somehow."
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
-time)
|
--time)
|
||||||
konan_args=("${konan_args[@]}" -time)
|
konan_args=("${konan_args[@]}" --time)
|
||||||
java_args=("${java_args[@]}" -agentlib:hprof=cpu=samples -Dkonan.profile=true)
|
java_args=("${java_args[@]}" -agentlib:hprof=cpu=samples -Dkonan.profile=true)
|
||||||
JAVACMD="time $JAVACMD"
|
JAVACMD="time $JAVACMD"
|
||||||
shift
|
shift
|
||||||
|
|||||||
Reference in New Issue
Block a user