From e3f0ab7c3dd6ce25b6d29f2df75feb14ac0c1bdf Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 19 Aug 2018 10:58:57 +0100 Subject: [PATCH] Parallelize parser on *nix --- src/parser.cpp | 3 +-- 1 file changed, 1 insertion(+), 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;