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 /src/linker.cpp | |
| 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 'src/linker.cpp')
| -rw-r--r-- | src/linker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linker.cpp b/src/linker.cpp index 7647ed872..41333a3c9 100644 --- a/src/linker.cpp +++ b/src/linker.cpp @@ -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"; |