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

cgen: parallelize (#10844)

This commit is contained in:
crthpl
2021-09-28 00:28:04 -07:00
committed by GitHub
parent a17b943e87
commit 85b58b03a3
43 changed files with 1003 additions and 580 deletions

View File

@@ -346,7 +346,7 @@ pub fn parse_files(paths []string, table &ast.Table, pref &pref.Preferences) []&
}
$if macos {
/*
if pref.is_parallel && paths[0].contains('/array.v') {
if !pref.no_parallel && paths[0].contains('/array.v') {
println('\n\n\nparse_files() nr_files=$paths.len')
println(paths)
nr_cpus := runtime.nr_cpus()