mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-01 10:52:19 +00:00
Rename iOS subtarget to iPhone for consistency.
Add `ODIN_PLATFORM_SUBTARGET_IOS` builtin constant which evaluated to `true` when the platform is `Darwin` and the subtarget it either `iPhone` or `iPhoneSimulator`
This commit is contained in:
@@ -787,7 +787,7 @@ try_cross_linking:;
|
||||
// being set to 'MacOSX' even though we've set the sysroot to the correct SDK (-Wincompatible-sysroot).
|
||||
// This is because it is likely not using the SDK's toolchain Apple Clang but another one installed in the system.
|
||||
switch (selected_subtarget) {
|
||||
case Subtarget_iOS:
|
||||
case Subtarget_iPhone:
|
||||
darwin_platform_name = "iPhoneOS";
|
||||
darwin_xcrun_sdk_name = "iphoneos";
|
||||
darwin_min_version_id = "ios";
|
||||
|
||||
Reference in New Issue
Block a user