diff options
| author | gingerBill <bill@gingerbill.org> | 2019-12-03 18:23:14 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2019-12-03 18:23:14 +0000 |
| commit | f1706486299af72505bce4d13d94d80571dd1829 (patch) | |
| tree | 1edba166a4d73d1725035cb0b13c9c89aae51358 /src/main.cpp | |
| parent | 42def957d56b48057622f963f1c1bbcd6f4fcbf2 (diff) | |
Fix issue with `-thread-count` flag with <= 0 count
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index fc6dab911..3cb33037e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -483,7 +483,7 @@ bool parse_build_flags(Array<String> args) { isize count = cast(isize)big_int_to_i64(&value.value_integer); if (count <= 0) { gb_printf_err("%.*s expected a positive non-zero number, got %.*s\n", LIT(name), LIT(param)); - build_context.thread_count = 0; + build_context.thread_count = 1; } else { build_context.thread_count = count; } |