mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-17 19:32:23 -07:00
Use DEFAULT_TO_THREADED_CHECKER
This commit is contained in:
@@ -3,6 +3,11 @@
|
||||
#include <sys/sysctl.h>
|
||||
#endif
|
||||
|
||||
|
||||
#if defined(GB_SYSTEM_WINDOWS)
|
||||
#define DEFAULT_TO_THREADED_CHECKER
|
||||
#endif
|
||||
|
||||
enum TargetOsKind {
|
||||
TargetOs_Invalid,
|
||||
|
||||
@@ -825,7 +830,7 @@ void init_build_context(TargetMetrics *cross_target) {
|
||||
bc->max_align = metrics->max_align;
|
||||
bc->link_flags = str_lit(" ");
|
||||
|
||||
#if defined(GB_SYSTEM_WINDOWS)
|
||||
#if defined(DEFAULT_TO_THREADED_CHECKER)
|
||||
bc->threaded_checker = true;
|
||||
#endif
|
||||
|
||||
|
||||
+2
-2
@@ -1226,7 +1226,7 @@ bool parse_build_flags(Array<String> args) {
|
||||
break;
|
||||
|
||||
case BuildFlag_ThreadedChecker:
|
||||
#if defined(GB_SYSTEM_WINDOWS)
|
||||
#if defined(DEFAULT_TO_THREADED_CHECKER)
|
||||
gb_printf_err("-threaded-checker is the default on this platform\n");
|
||||
bad_flags = true;
|
||||
#endif
|
||||
@@ -1234,7 +1234,7 @@ bool parse_build_flags(Array<String> args) {
|
||||
break;
|
||||
|
||||
case BuildFlag_NoThreadedChecker:
|
||||
#if !defined(GB_SYSTEM_WINDOWS)
|
||||
#if !defined(DEFAULT_TO_THREADED_CHECKER)
|
||||
gb_printf_err("-no-threaded-checker is the default on this platform\n");
|
||||
bad_flags = true;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user