diff options
| author | gingerBill <bill@gingerbill.org> | 2018-08-19 10:58:57 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-08-19 10:58:57 +0100 |
| commit | e3f0ab7c3dd6ce25b6d29f2df75feb14ac0c1bdf (patch) | |
| tree | fec50edbd063ca9567bc8851ebb04d65fc9e26b7 /src | |
| parent | 5643ea1ba2d9309fdf55a2f9797ff0f29f0713c8 (diff) | |
Parallelize parser on *nix
Diffstat (limited to 'src')
| -rw-r--r-- | src/parser.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index cce1729c1..b160082ae 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -4426,8 +4426,7 @@ ParseFileError parse_packages(Parser *p, String init_filename) { try_add_import_path(p, init_fullpath, init_fullpath, init_pos, Package_Init); p->init_fullpath = init_fullpath; - // IMPORTANT TODO(bill): Figure out why this doesn't work on *nix sometimes -#if 1 && defined(GB_SYSTEM_WINDOWS) +#if 1 isize thread_count = gb_max(build_context.thread_count, 1); if (thread_count > 1) { isize volatile curr_import_index = 0; |