compiler: passing -show_c_cmd should always print the C compiler command.
parent
d9a83481a5
commit
796b9dab74
|
@ -876,6 +876,10 @@ mut args := ''
|
||||||
exit(0)
|
exit(0)
|
||||||
}
|
}
|
||||||
// Run
|
// Run
|
||||||
|
if v.pref.show_c_cmd || v.pref.is_verbose {
|
||||||
|
println('\n==========')
|
||||||
|
println(cmd)
|
||||||
|
}
|
||||||
ticks := time.ticks()
|
ticks := time.ticks()
|
||||||
_ := os.exec(cmd) or {
|
_ := os.exec(cmd) or {
|
||||||
if v.pref.is_debug {
|
if v.pref.is_debug {
|
||||||
|
@ -893,8 +897,6 @@ mut args := ''
|
||||||
diff := time.ticks() - ticks
|
diff := time.ticks() - ticks
|
||||||
// Print the C command
|
// Print the C command
|
||||||
if v.pref.show_c_cmd || v.pref.is_verbose {
|
if v.pref.show_c_cmd || v.pref.is_verbose {
|
||||||
println('\n==========')
|
|
||||||
println(cmd)
|
|
||||||
println('cc took $diff ms')
|
println('cc took $diff ms')
|
||||||
println('=========\n')
|
println('=========\n')
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue