mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-18 00:41:26 -07:00
Default to -o:minimal again
This commit is contained in:
@@ -1649,7 +1649,11 @@ gb_internal void init_build_context(TargetMetrics *cross_target, Subtarget subta
|
||||
if (!bc->custom_optimization_level) {
|
||||
// NOTE(bill): when building with `-debug` but not specifying an optimization level
|
||||
// default to `-o:none` to improve the debug symbol generation by default
|
||||
bc->optimization_level = -1; // -o:none
|
||||
if (bc->ODIN_DEBUG) {
|
||||
bc->optimization_level = -1; // -o:none
|
||||
} else {
|
||||
bc->optimization_level = 0; // -o:minimal
|
||||
}
|
||||
}
|
||||
|
||||
bc->optimization_level = gb_clamp(bc->optimization_level, -1, 3);
|
||||
|
||||
Reference in New Issue
Block a user