1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

tools/fast: use prealloc

This commit is contained in:
Alexander Medvednikov 2021-05-05 22:02:26 +03:00
parent 4e6a19b0e5
commit fc801fd563

View File

@ -37,7 +37,7 @@ fn main() {
// println('Checking out ${commit}...') // println('Checking out ${commit}...')
// exec('git checkout $commit') // exec('git checkout $commit')
println(' Building vprod...') println(' Building vprod...')
exec('v -o $vdir/vprod -prod $vdir/cmd/v') exec('v -o $vdir/vprod -prod -prealloc $vdir/cmd/v')
// exec('v -o $vdir/vprod $vdir/cmd/v') // for faster debugging // 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 clang -o v.c -show-timings $vdir/cmd/v', 'v.c')
mut tcc_path := 'tcc' mut tcc_path := 'tcc'