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

builder: measure msvc execution too

This commit is contained in:
Delyan Angelov 2020-07-21 19:45:50 +03:00
parent 14fd7d93ca
commit 8b930b4888

View File

@ -1,6 +1,7 @@
module builder
import os
import time
import v.pref
import v.cflag
@ -302,11 +303,14 @@ pub fn (mut v Builder) cc_msvc() {
println('==========\n')
}
// println('$cmd')
ticks := time.ticks()
res := os.exec(cmd) or {
println(err)
verror('msvc error')
return
}
diff := time.ticks() - ticks
v.timing_message('C msvc: ${diff}ms')
if res.exit_code != 0 {
verror(res.output)
}