parser: use parallel only on macos for now
parent
1e853072dc
commit
edabd57e8a
|
@ -171,6 +171,7 @@ fn (mut q Queue) run() {
|
||||||
|
|
||||||
pub fn parse_files(paths []string, table &table.Table, pref &pref.Preferences, global_scope &ast.Scope) []ast.File {
|
pub fn parse_files(paths []string, table &table.Table, pref &pref.Preferences, global_scope &ast.Scope) []ast.File {
|
||||||
// println('nr_cpus= $nr_cpus')
|
// println('nr_cpus= $nr_cpus')
|
||||||
|
$if macos {
|
||||||
if pref.is_parallel && paths[0].contains('/array.v') {
|
if pref.is_parallel && paths[0].contains('/array.v') {
|
||||||
println('\n\n\nparse_files() nr_files=$paths.len')
|
println('\n\n\nparse_files() nr_files=$paths.len')
|
||||||
println(paths)
|
println(paths)
|
||||||
|
@ -190,6 +191,7 @@ pub fn parse_files(paths []string, table &table.Table, pref &pref.Preferences, g
|
||||||
println('all done')
|
println('all done')
|
||||||
return q.parsed_ast_files
|
return q.parsed_ast_files
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// ///////////////
|
// ///////////////
|
||||||
mut files := []ast.File{}
|
mut files := []ast.File{}
|
||||||
for path in paths {
|
for path in paths {
|
||||||
|
|
|
@ -15,7 +15,7 @@ pub mut:
|
||||||
modules []string // List of all modules registered by the application
|
modules []string // List of all modules registered by the application
|
||||||
cflags []cflag.CFlag
|
cflags []cflag.CFlag
|
||||||
redefined_fns []string
|
redefined_fns []string
|
||||||
fn_gen_types map[string][]Type
|
fn_gen_types map[string][]Type // for generic functions
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct Fn {
|
pub struct Fn {
|
||||||
|
|
Loading…
Reference in New Issue