From e657cb2cd2f70cb09c31f8426d2430956362e6c2 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sat, 15 May 2021 05:52:06 +0300 Subject: [PATCH] tools/fast: use -usecache --- cmd/tools/fast/fast.v | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/tools/fast/fast.v b/cmd/tools/fast/fast.v index 292a29f505..c3c800d53e 100644 --- a/cmd/tools/fast/fast.v +++ b/cmd/tools/fast/fast.v @@ -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 {