mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-03 01:07:56 +00:00
Disable -use-separate-modules by default on darwin until problem is determined
This commit is contained in:
@@ -1658,11 +1658,13 @@ gb_internal void init_build_context(TargetMetrics *cross_target, Subtarget subta
|
||||
|
||||
bc->optimization_level = gb_clamp(bc->optimization_level, -1, 3);
|
||||
|
||||
#if !defined(GB_SYSTEM_OSX)
|
||||
if (bc->optimization_level <= 0) {
|
||||
if (!is_arch_wasm()) {
|
||||
bc->use_separate_modules = true;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
// TODO: Static map calls are bugged on `amd64sysv` abi.
|
||||
|
||||
Reference in New Issue
Block a user