aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorHarold Brenes <harold@hbrenes.com>2025-07-13 20:17:30 -0400
committerHarold Brenes <harold@hbrenes.com>2025-07-13 20:17:30 -0400
commit0e245fb40f12f0dd4ac53cc9c535e354a0540ea6 (patch)
treeafb880d404cef1103d36645cb636732c66435567 /base
parent219b0fe5352af2b9265b0389965aa411ad9af4b5 (diff)
Updated iOS/iPhoneSimulator build support
Diffstat (limited to 'base')
-rw-r--r--base/builtin/builtin.odin2
-rw-r--r--base/runtime/core.odin1
-rw-r--r--base/runtime/heap_allocator_unix.odin2
3 files changed, 3 insertions, 2 deletions
diff --git a/base/builtin/builtin.odin b/base/builtin/builtin.odin
index 0196e2030..af102ee0b 100644
--- a/base/builtin/builtin.odin
+++ b/base/builtin/builtin.odin
@@ -145,7 +145,7 @@ ODIN_OS_STRING :: ODIN_OS_STRING
/*
An `enum` value indicating the platform subtarget, chosen using the `-subtarget` switch.
- Possible values are: `.Default` `.iOS`, and `.Android`.
+ Possible values are: `.Default` `.iOS`, .iPhoneSimulator, and `.Android`.
*/
ODIN_PLATFORM_SUBTARGET :: ODIN_PLATFORM_SUBTARGET
diff --git a/base/runtime/core.odin b/base/runtime/core.odin
index 1dadbbf6f..6c43e6c16 100644
--- a/base/runtime/core.odin
+++ b/base/runtime/core.odin
@@ -558,6 +558,7 @@ ALL_ODIN_OS_TYPES :: Odin_OS_Types{
Odin_Platform_Subtarget_Type :: enum int {
Default,
iOS,
+ iPhoneSimulator
Android,
}
*/
diff --git a/base/runtime/heap_allocator_unix.odin b/base/runtime/heap_allocator_unix.odin
index d4590d2dd..f6e7ce39e 100644
--- a/base/runtime/heap_allocator_unix.odin
+++ b/base/runtime/heap_allocator_unix.odin
@@ -3,7 +3,7 @@
package runtime
when ODIN_OS == .Darwin {
- foreign import libc "system:System.framework"
+ foreign import libc "system:System"
} else {
foreign import libc "system:c"
}