mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Removes macOS min version and supports default latest
This commit is contained in:
@@ -479,10 +479,6 @@ gb_internal i32 linker_stage(LinkerData *gen) {
|
|||||||
// This sets a requirement of Mountain Lion and up, but the compiler doesn't work without this limit.
|
// This sets a requirement of Mountain Lion and up, but the compiler doesn't work without this limit.
|
||||||
if (build_context.minimum_os_version_string.len) {
|
if (build_context.minimum_os_version_string.len) {
|
||||||
link_settings = gb_string_append_fmt(link_settings, " -mmacosx-version-min=%.*s ", LIT(build_context.minimum_os_version_string));
|
link_settings = gb_string_append_fmt(link_settings, " -mmacosx-version-min=%.*s ", LIT(build_context.minimum_os_version_string));
|
||||||
} else if (build_context.metrics.arch == TargetArch_arm64) {
|
|
||||||
link_settings = gb_string_appendc(link_settings, " -mmacosx-version-min=12.0.0 ");
|
|
||||||
} else {
|
|
||||||
link_settings = gb_string_appendc(link_settings, " -mmacosx-version-min=10.12.0 ");
|
|
||||||
}
|
}
|
||||||
// This points the linker to where the entry point is
|
// This points the linker to where the entry point is
|
||||||
link_settings = gb_string_appendc(link_settings, " -e _main ");
|
link_settings = gb_string_appendc(link_settings, " -e _main ");
|
||||||
|
|||||||
Reference in New Issue
Block a user