Add -microarch:?

This commit is contained in:
Jeroen van Rijn
2023-11-10 19:37:08 +01:00
parent 70c1f9d0e1
commit e19460cbd7
5 changed files with 88 additions and 2 deletions

View File

@@ -2518,6 +2518,13 @@ gb_internal bool lb_generate_code(lbGenerator *gen) {
}
}
// NOTE(Jeroen): Uncomment to get the list of supported microarchitectures.
/*
if (build_context.microarch == "?") {
string_set_add(&build_context.target_features_set, str_lit("+cpuhelp"));
}
*/
if (build_context.target_features_set.entries.count != 0) {
llvm_features = target_features_set_to_cstring(permanent_allocator(), false);
}