From bdc3f76f68f30c584365fffe6a081240ae691dcf Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sun, 9 May 2021 03:23:49 +0300 Subject: [PATCH] tools/fast: use -skip-unused --- cmd/tools/fast/fast.v | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/tools/fast/fast.v b/cmd/tools/fast/fast.v index 548aad5f2c..701d253872 100644 --- a/cmd/tools/fast/fast.v +++ b/cmd/tools/fast/fast.v @@ -39,14 +39,14 @@ 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 - diff1 := measure('$vdir/vprod -cc clang -o v.c -show-timings $vdir/cmd/v', 'v.c') + diff1 := measure('$vdir/vprod -cc -skip-unused clang -o v.c -show-timings $vdir/cmd/v', 'v.c') mut tcc_path := 'tcc' $if freebsd { tcc_path = '/usr/local/bin/tcc' } - diff2 := measure('$vdir/vprod -cc $tcc_path -o v2 $vdir/cmd/v', 'v2') + diff2 := measure('$vdir/vprod -skip-unused -cc $tcc_path -o v2 $vdir/cmd/v', 'v2') diff3 := 0 // measure('$vdir/vprod -native $vdir/cmd/tools/1mil.v', 'native 1mil') - diff4 := measure('$vdir/vprod -cc clang $vdir/examples/hello_world.v', 'hello.v') + diff4 := measure('$vdir/vprod -skip-unused -cc clang $vdir/examples/hello_world.v', 'hello.v') vc_size := os.file_size('v.c') / 1000 // scan/parse/check/cgen scan, parse, check, cgen, vlines := measure_steps(vdir)