compiler: passing -show_c_cmd should always print the C compiler command.

pull/1532/head
Delyan Angelov 2019-08-09 12:18:53 +03:00 committed by Alexander Medvednikov
parent d9a83481a5
commit 796b9dab74
1 changed files with 4 additions and 2 deletions

View File

@ -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')
} }