You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introduce CLR_CMAKE_TARGET_APPLE_MOBILE for iOS/tvOS/MacCatalyst (#126833)
These three platforms share the same runtime constraints: static
linking, no fork(), no build tools, hybrid globalization, no console
signals, etc. Having each one listed individually in cmake conditions is
verbose and error-prone — PR #126550 accidentally disabled
FEATURE_CORPROFILER for tvOS alone, breaking unified-build tvOS legs.
Introduce CLR_CMAKE_TARGET_APPLE_MOBILE as an umbrella variable in
configureplatform.cmake, set when any of iOS, tvOS, or MacCatalyst is
the target. Replace ~30 'all three grouped' patterns across 11 cmake
files with the umbrella, reducing line noise and preventing future
divergence.
Per-platform variables are preserved where they genuinely differ:
- configurecompiler.cmake: TARGET_* C++ defines and compiler targets
- System.Security.Cryptography.Native.Apple: Swift platform names
- System.Net.Security.Native / corehost: tvOS gssapi exclusion
- System.Native: MacCatalyst pal_iossupportversion.m
Also fixes: sendfile exclusion was missing MacCatalyst (now covered by
APPLE_MOBILE), and the triplicated configure.cmake feature overrides for
iOS/MacCatalyst/tvOS are consolidated into one block.
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments