tools/fast: wipe cache before measuring

pull/10186/head^2
Alexander Medvednikov 2021-05-24 12:12:14 +03:00
parent 886f69bfcf
commit db848ed314
1 changed files with 4 additions and 1 deletions

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 {