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:
parent
886f69bfcf
commit
db848ed314
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user