Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 5.6k
Add Mac Catalyst (iOS API, Mac ABI) runtime#47823
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
5015d038980f41840e234901bac3ce6ef33b955a3aab7d99f2ccad315ee8b7849ab49acbec4f272e93689cb3d5e0f701855a3ab812d5d1fb8daf812519b266a88df9f7f9099bebdb15ea3efc5359ce230d75869ae7cd8cc11927731dc4019740dddb619e4d5d0c70b96ac63351ee37bcFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -390,19 +390,40 @@ if (CLR_CMAKE_HOST_UNIX) | ||
| # Specify the minimum supported version of macOS | ||
| if(CLR_CMAKE_HOST_OSX) | ||
| if(CLR_CMAKE_HOST_ARCH_ARM64) | ||
| # 'pthread_jit_write_protect_np' is only available on macOS 11.0 or newer | ||
| set(MACOS_VERSION_MIN_FLAGS -mmacosx-version-min=11.0) | ||
| add_compile_options(-arch arm64) | ||
| elseif(CLR_CMAKE_HOST_ARCH_AMD64) | ||
| set(MACOS_VERSION_MIN_FLAGS -mmacosx-version-min=10.13) | ||
| add_compile_options(-arch x86_64) | ||
| # Mac Catalyst needs a special CFLAG, exclusive with mmacosx-version-min | ||
| if(CLR_CMAKE_TARGET_MACCATALYST) | ||
| # Somewhere between CMake 3.17 and 3.19.4, it became impossible to not pass | ||
directhex marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| # a value for mmacosx-version-min (blank CMAKE_OSX_DEPLOYMENT_TARGET gets | ||
| # replaced with a default value, and always gets expanded to an OS version. | ||
| # https://gitlab.kitware.com/cmake/cmake/-/issues/20132 | ||
| # We need to disable the warning that -tagret replaces -mmacosx-version-min | ||
| add_compile_options(-Wno-overriding-t-option) | ||
| add_link_options(-Wno-overriding-t-option) | ||
| if(CLR_CMAKE_HOST_ARCH_ARM64) | ||
| add_compile_options(-target arm64-apple-ios14.2-macabi) | ||
| add_link_options(-target arm64-apple-ios14.2-macabi) | ||
| elseif(CLR_CMAKE_HOST_ARCH_AMD64) | ||
| add_compile_options(-target x86_64-apple-ios13.5-macabi) | ||
| add_link_options(-target x86_64-apple-ios13.5-macabi) | ||
| else() | ||
| clr_unknown_arch() | ||
| endif() | ||
| else() | ||
| clr_unknown_arch() | ||
| endif() | ||
| add_compile_options(${MACOS_VERSION_MIN_FLAGS}) | ||
| add_linker_flag(${MACOS_VERSION_MIN_FLAGS}) | ||
| if(CLR_CMAKE_HOST_ARCH_ARM64) | ||
| # 'pthread_jit_write_protect_np' is only available on macOS 11.0 or newer | ||
| set(MACOS_VERSION_MIN_FLAGS -mmacosx-version-min=11.0) | ||
| add_compile_options(-arch arm64) | ||
| elseif(CLR_CMAKE_HOST_ARCH_AMD64) | ||
| set(MACOS_VERSION_MIN_FLAGS -mmacosx-version-min=10.13) | ||
| add_compile_options(-arch x86_64) | ||
| else() | ||
| clr_unknown_arch() | ||
| endif() | ||
| add_compile_options(${MACOS_VERSION_MIN_FLAGS}) | ||
| add_linker_flag(${MACOS_VERSION_MIN_FLAGS}) | ||
| endif(CLR_CMAKE_TARGET_MACCATALYST) | ||
| endif(CLR_CMAKE_HOST_OSX) | ||
| endif(CLR_CMAKE_HOST_UNIX) | ||
| if(CLR_CMAKE_TARGET_UNIX) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -98,6 +98,8 @@ stages: | ||
| - Android_x86 | ||
| - Android_arm | ||
| - Android_arm64 | ||
| - MacCatalyst_x64 | ||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. add ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think that's blocking on arm64 LLVM packages ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking on a different issue, #47891 | ||
| - MacCatalyst_arm64 | ||
| - tvOS_x64 | ||
| - tvOS_arm64 | ||
| - iOS_x64 | ||
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.