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