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

tools/fast: wipe cache before measuring

This commit is contained in:
Alexander Medvednikov 2021-05-24 12:12:14 +03:00
parent 886f69bfcf
commit db848ed314

View File

@ -42,7 +42,10 @@ fn main() {
println(' Building vprod...')
exec('v -o $vdir/vprod -prod -prealloc $vdir/cmd/v')
// exec('v -o $vdir/vprod $vdir/cmd/v') // for faster debugging
exec('v -o v2 -prod -usecache $vdir/cmd/v') // cache vlib modules
// cache vlib modules
exec('v wipe-cache')
exec('v -o v2 -prod -usecache $vdir/cmd/v')
// measure
diff1 := measure('$vdir/vprod $voptions -o v.c $vdir/cmd/v', 'v.c')
mut tcc_path := 'tcc'
$if freebsd {