aboutsummaryrefslogtreecommitdiff
path: root/base/runtime
diff options
context:
space:
mode:
authorHarold Brenes <harold@hbrenes.com>2025-07-14 21:55:28 -0400
committerHarold Brenes <harold@hbrenes.com>2025-07-14 21:55:28 -0400
commitbab4ce11fc1d52e2a63ed950fcf3cb0510cbe642 (patch)
treea217ccedae7c347449d47b58711266d97b41001a /base/runtime
parent67c90b5d9e321910632716a2ebb0bb97964020b1 (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 'base/runtime')
-rw-r--r--base/runtime/core.odin4
1 files changed, 3 insertions, 1 deletions
diff --git a/base/runtime/core.odin b/base/runtime/core.odin
index 6c43e6c16..090d1a65b 100644
--- a/base/runtime/core.odin
+++ b/base/runtime/core.odin
@@ -557,7 +557,7 @@ ALL_ODIN_OS_TYPES :: Odin_OS_Types{
// Defined internally by the compiler
Odin_Platform_Subtarget_Type :: enum int {
Default,
- iOS,
+ iPhone,
iPhoneSimulator
Android,
}
@@ -566,6 +566,8 @@ Odin_Platform_Subtarget_Type :: type_of(ODIN_PLATFORM_SUBTARGET)
Odin_Platform_Subtarget_Types :: bit_set[Odin_Platform_Subtarget_Type]
+@(builtin)
+ODIN_PLATFORM_SUBTARGET_IOS :: ODIN_PLATFORM_SUBTARGET == .iPhone || ODIN_PLATFORM_SUBTARGET == .iPhoneSimulator
/*
// Defined internally by the compiler