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)
}
// Run
if v.pref.show_c_cmd || v.pref.is_verbose {
println('\n==========')
println(cmd)
}
ticks := time.ticks()
_ := os.exec(cmd) or {
if v.pref.is_debug {
@ -893,8 +897,6 @@ mut args := ''
diff := time.ticks() - ticks
// Print the C command
if v.pref.show_c_cmd || v.pref.is_verbose {
println('\n==========')
println(cmd)
println('cc took $diff ms')
println('=========\n')
}