tools/fast: use -usecache

pull/10110/head
Alexander Medvednikov 2021-05-15 05:52:06 +03:00
parent 7bfd89567b
commit e657cb2cd2
1 changed files with 2 additions and 1 deletions

View File

@ -4,7 +4,7 @@
import os
import time
const voptions = ' -skip-unused -show-timings -stats '
const voptions = ' -skip-unused -usecache -show-timings -stats '
fn main() {
exe := os.executable()
@ -41,6 +41,7 @@ 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
diff1 := measure('$vdir/vprod $voptions -o v.c $vdir/cmd/v', 'v.c')
mut tcc_path := 'tcc'
$if freebsd {