1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

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

This commit is contained in:
Delyan Angelov 2019-08-09 12:18:53 +03:00 committed by Alexander Medvednikov
parent d9a83481a5
commit 796b9dab74

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