mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-05 04:27:51 +00:00
Default to -microarch:generic
This commit is contained in:
@@ -820,6 +820,9 @@ void init_build_context(TargetMetrics *cross_target) {
|
||||
|
||||
gbString opt_flags = gb_string_make_reserve(heap_allocator(), 64);
|
||||
|
||||
if (bc->microarch.len == 0) {
|
||||
bc->microarch = str_lit("generic");
|
||||
}
|
||||
|
||||
if (bc->microarch.len != 0) {
|
||||
opt_flags = gb_string_appendc(opt_flags, "-march=");
|
||||
|
||||
Reference in New Issue
Block a user