diff options
| author | Harold Brenes <harold@hbrenes.com> | 2025-07-14 21:55:28 -0400 |
|---|---|---|
| committer | Harold Brenes <harold@hbrenes.com> | 2025-07-14 21:55:28 -0400 |
| commit | bab4ce11fc1d52e2a63ed950fcf3cb0510cbe642 (patch) | |
| tree | a217ccedae7c347449d47b58711266d97b41001a /core/sys/info | |
| parent | 67c90b5d9e321910632716a2ebb0bb97964020b1 (diff) | |
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`
Diffstat (limited to 'core/sys/info')
| -rw-r--r-- | core/sys/info/platform_darwin.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/sys/info/platform_darwin.odin b/core/sys/info/platform_darwin.odin index dd7f0fa03..3fc8064ec 100644 --- a/core/sys/info/platform_darwin.odin +++ b/core/sys/info/platform_darwin.odin @@ -28,7 +28,7 @@ init_platform :: proc() { macos_version = {int(version.majorVersion), int(version.minorVersion), int(version.patchVersion)} - when ODIN_PLATFORM_SUBTARGET == .iOS { + when ODIN_PLATFORM_SUBTARGET_IOS { os_version.platform = .iOS ws(&b, "iOS") } else { |