mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-18 04:20:28 +00:00
Fix correct versioned target triplet for iphonesimulator subtarget
- Always set the `-m*-version-min` linker flag for non-macOS Darwin subtargets
This commit is contained in:
@@ -846,7 +846,9 @@ try_cross_linking:;
|
||||
|
||||
// Only specify this flag if the user has given a minimum version to target.
|
||||
// This will cause warnings to show up for mismatched libraries.
|
||||
if (build_context.minimum_os_version_string_given) {
|
||||
// NOTE(harold): For device subtargets we have to explicitly set the default version to
|
||||
// avoid the same warning since we configure our own minimum version when compiling for devices.
|
||||
if (build_context.minimum_os_version_string_given || selected_subtarget != Subtarget_Default) {
|
||||
link_settings = gb_string_append_fmt(link_settings, "-m%s-version-min=%.*s ", darwin_min_version_id, LIT(build_context.minimum_os_version_string));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user