@@ -6,6 +6,7 @@ import time
66import  arrays 
77import  log 
88
9+ const  args  =  arguments ()
910const  warmup_samples  =  2 
1011
1112const  max_samples  =  20 
@@ -54,7 +55,7 @@ fn main() {
5455	if  vdir.contains ('/tmp/cirrus-ci-build' ) {
5556		ccompiler_path  =  'clang' 
5657	}
57- 	if  os. args.contains ('-clang' ) {
58+ 	if  args.contains ('-clang' ) {
5859		ccompiler_path  =  'clang' 
5960	}
6061	elog ('fast_dir: ${fast_dir}  | vdir: ${vdir}  | compiler: ${ccompiler_path} ' )
@@ -68,7 +69,7 @@ fn main() {
6869		os.create ('table.html' )! 
6970	}
7071
71- 	if  ! os. args.contains ('-noupdate' ) {
72+ 	if  ! args.contains ('-noupdate' ) {
7273		elog ('Fetching updates...' )
7374		ret  :=  lsystem ('${vdir} /v up' )
7475		if  ret !=  0  {
@@ -83,7 +84,7 @@ fn main() {
8384		uploaded_index  :=  os.read_file ('fast.vlang.io/index.html' )! 
8485		if  uploaded_index.contains ('>${commit} <' ) {
8586			elog ('NOTE: commit ${commit}  had been benchmarked already.' )
86- 			if  ! os. args.contains ('-force' ) {
87+ 			if  ! args.contains ('-force' ) {
8788				elog ('nothing more to do' )
8889				return 
8990			}
@@ -98,21 +99,21 @@ fn main() {
9899	elog ('Benchmarking commit ${commit}  , with commit message: "${message} ", commit_date: ${commit_date} , date: ${date} ' )
99100
100101	//  build an optimized V
101- 	if  os. args.contains ('-do-not-rebuild-vprod' ) {
102+ 	if  args.contains ('-do-not-rebuild-vprod' ) {
102103		if  ! os.exists ('vprod' ) {
103104			elog ('Exiting, since if you use `-do-not-rebuild-vprod`, you should already have a `${vdir} /vprod` executable, but it is missing!' )
104105			return 
105106		}
106107	} else  {
107108		elog ('  Building vprod...' )
108- 		if  os. args.contains ('-noprod' ) {
109+ 		if  args.contains ('-noprod' ) {
109110			lexec ('./v -o vprod cmd/v' ) //  for faster debugging
110111		} else  {
111112			lexec ('./v -o vprod -prod -prealloc cmd/v' )
112113		}
113114	}
114115
115- 	if  ! os. args.contains ('-do-not-rebuild-caches' ) {
116+ 	if  ! args.contains ('-do-not-rebuild-caches' ) {
116117		elog ('clearing caches...' )
117118		//  cache vlib modules
118119		lexec ('${vdir} /v wipe-cache' )
@@ -163,7 +164,7 @@ fn main() {
163164	res.close ()
164165
165166	//  upload the result to github pages
166- 	if  os. args.contains ('-upload' ) {
167+ 	if  args.contains ('-upload' ) {
167168		$if  freebsd {
168169			//  Note: tcc currently can not compile vpm on FreeBSD, due to its dependence on net.ssl and net.mbedtls, so force using clang instead:
169170			elog ('FreeBSD: compiling the VPM tool with clang...' )
0 commit comments