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

ci: run fast.v with clang on freebsd

This commit is contained in:
Alexander Medvednikov 2021-08-16 06:30:35 +03:00
parent eb1ac5b30d
commit 765759817d
2 changed files with 4 additions and 1 deletions

View File

@ -11,4 +11,4 @@ task:
##.github/workflows/freebsd_build_tcc.sh ##.github/workflows/freebsd_build_tcc.sh
##tcc -v -v ##tcc -v -v
echo 'Build cmd/tools/fast' echo 'Build cmd/tools/fast'
cd cmd/tools/fast && ../../../v fast.v ## && ./fast cd cmd/tools/fast && ../../../v fast.v && ./fast -clang

View File

@ -65,6 +65,9 @@ fn main() {
tcc_path = 'clang' tcc_path = 'clang'
} }
} }
if os.args.contains('-clang') {
tcc_path = 'clang'
}
diff2 := measure('$vdir/vprod $voptions -cc $tcc_path -o v2 cmd/v', 'v2') diff2 := measure('$vdir/vprod $voptions -cc $tcc_path -o v2 cmd/v', 'v2')
diff3 := 0 // measure('$vdir/vprod -native $vdir/cmd/tools/1mil.v', 'native 1mil') diff3 := 0 // measure('$vdir/vprod -native $vdir/cmd/tools/1mil.v', 'native 1mil')
diff4 := measure('$vdir/vprod -usecache $voptions -cc clang examples/hello_world.v', diff4 := measure('$vdir/vprod -usecache $voptions -cc clang examples/hello_world.v',