From 6a54f3a84da67e85008ee67bb60e79e3db060017 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sun, 9 May 2021 04:37:22 +0300 Subject: [PATCH] tools/fast: vfmt fast.v --- cmd/tools/fast/fast.v | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cmd/tools/fast/fast.v b/cmd/tools/fast/fast.v index 0797da697c..a2f378159d 100644 --- a/cmd/tools/fast/fast.v +++ b/cmd/tools/fast/fast.v @@ -39,14 +39,16 @@ 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 -skip-unused -cc clang -o v.c -show-timings $vdir/cmd/v', 'v.c') + diff1 := measure('$vdir/vprod -skip-unused -cc 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 -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 -skip-unused -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)