-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Add iOS build configurations #33292
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
Add iOS build configurations #33292
Changes from all commits
3ab2446
3ed6789
4543209
9c051a9
06cd416
7f8d779
804c34d
4e10780
7b1cbaa
ab6b26b
ca62be6
810ffcf
c074d97
77a3c94
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -80,6 +80,20 @@ if(CLR_CMAKE_HOST_OS STREQUAL Darwin) | |
| set(CMAKE_ASM_COMPILE_OBJECT "${CMAKE_C_COMPILER} <FLAGS> <DEFINES> <INCLUDES> -o <OBJECT> -c <SOURCE>") | ||
| endif(CLR_CMAKE_HOST_OS STREQUAL Darwin) | ||
|
|
||
| if(CLR_CMAKE_HOST_OS STREQUAL iOS) | ||
| set(CLR_CMAKE_HOST_UNIX 1) | ||
| set(CLR_CMAKE_HOST_IOS 1) | ||
| if(CMAKE_OSX_ARCHITECTURES MATCHES "x86_64") | ||
| set(CLR_CMAKE_HOST_UNIX_AMD64 1) | ||
| elseif(CMAKE_OSX_ARCHITECTURES MATCHES "armv7") | ||
| set(CLR_CMAKE_HOST_UNIX_ARM 1) | ||
| elseif(CMAKE_OSX_ARCHITECTURES MATCHES "arm64") | ||
| set(CLR_CMAKE_HOST_UNIX_ARM64 1) | ||
| else() | ||
| clr_unknown_arch() | ||
| endif() | ||
| endif(CLR_CMAKE_HOST_OS STREQUAL iOS) | ||
|
|
||
| if(CLR_CMAKE_HOST_OS STREQUAL FreeBSD) | ||
| set(CLR_CMAKE_HOST_UNIX 1) | ||
| set(CLR_CMAKE_HOST_UNIX_AMD64 1) | ||
|
|
@@ -230,6 +244,11 @@ if(CLR_CMAKE_TARGET_OS STREQUAL Darwin) | |
| set(CLR_CMAKE_TARGET_DARWIN 1) | ||
| endif(CLR_CMAKE_TARGET_OS STREQUAL Darwin) | ||
|
|
||
| if(CLR_CMAKE_TARGET_OS STREQUAL iOS) | ||
| set(CLR_CMAKE_TARGET_UNIX 1) | ||
| set(CLR_CMAKE_TARGET_IOS 1) | ||
| endif(CLR_CMAKE_TARGET_OS STREQUAL iOS) | ||
|
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. I'd expect iOS to set
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. Yes please, at least on cmake side, we are consistent with
Member
Author
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. This was a conscious decision because
Member
Author
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'll do the renaming in a follow-up PR. |
||
|
|
||
| if(CLR_CMAKE_TARGET_OS STREQUAL FreeBSD) | ||
| set(CLR_CMAKE_TARGET_UNIX 1) | ||
| set(CLR_CMAKE_TARGET_FREEBSD 1) | ||
|
|
@@ -302,3 +321,5 @@ if(NOT CLR_CMAKE_HOST_ARCH_WASM) | |
| endif() | ||
| set(CMAKE_POSITION_INDEPENDENT_CODE ON) | ||
| endif(NOT CLR_CMAKE_HOST_ARCH_WASM) | ||
|
|
||
| set(CLR_CMAKE_CONFIGURE_PLATFORM_INCLUDED 1) | ||
Uh oh!
There was an error while loading. Please reload this page.