-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Enable building NativeAOT for Apple mobile platforms #81780
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
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
268e281
Enable building NativeAOT for Apple mobile platforms
akoeplinger 366752c
Merge remote-tracking branch 'upstream/main' into nativeaot-mobile
akoeplinger 414bda6
PR feedback: introduce TARGET_APPLE and HOST_APPLE
akoeplinger ee10278
Fixup
akoeplinger cef6c24
Fixup
akoeplinger a532f5a
Fixup
akoeplinger 7447182
Fixup
akoeplinger 26a3cab
Fix libs.pretest build
akoeplinger 2cbba74
Revert unnecessary changes to files not used by NativeAOT
akoeplinger f0f3390
Merge remote-tracking branch 'upstream/main' into nativeaot-mobile
akoeplinger c28bfd1
Revert a few more changes
akoeplinger a403f62
Add a comment
akoeplinger 51cdabd
Revert one more change
akoeplinger 5970ec2
Revert one more change
akoeplinger 44db39d
Fix TARGET vs HOST
akoeplinger 9f54bda
Simplify ICU fallback
akoeplinger File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
macro(set_cache_value) | ||
set(${ARGV0} ${ARGV1} CACHE STRING "Result from TRY_RUN" FORCE) | ||
set(${ARGV0}__TRYRUN_OUTPUT "dummy output" CACHE STRING "Output from TRY_RUN" FORCE) | ||
endmacro() | ||
|
||
set_cache_value(HAVE_SCHED_GETCPU_EXITCODE 1) | ||
set_cache_value(HAVE_CLOCK_MONOTONIC_COARSE_EXITCODE 1) | ||
set_cache_value(HAVE_CLOCK_MONOTONIC_EXITCODE 0) | ||
|
||
|
||
# TODO: these are taken from macOS, check these whether they're correct for iOS | ||
# some of them are probably not used by what we use from NativeAOT so could be reduced | ||
set_cache_value(FILE_OPS_CHECK_FERROR_OF_PREVIOUS_CALL_EXITCODE 1) | ||
set_cache_value(GETPWUID_R_SETS_ERRNO_EXITCODE 1) | ||
set_cache_value(HAS_POSIX_SEMAPHORES_EXITCODE 1) | ||
set_cache_value(HAVE_BROKEN_FIFO_KEVENT_EXITCODE 1) | ||
set_cache_value(HAVE_BROKEN_FIFO_SELECT_EXITCODE 1) | ||
set_cache_value(HAVE_CLOCK_REALTIME_EXITCODE 0) | ||
set_cache_value(HAVE_CLOCK_THREAD_CPUTIME_EXITCODE 0) | ||
set_cache_value(HAVE_CLOCK_GETTIME_NSEC_NP_EXITCODE 0) | ||
set_cache_value(HAVE_COMPATIBLE_ACOS_EXITCODE 0) | ||
set_cache_value(HAVE_COMPATIBLE_ASIN_EXITCODE 0) | ||
set_cache_value(HAVE_COMPATIBLE_ATAN2_EXITCODE 0) | ||
set_cache_value(HAVE_COMPATIBLE_EXP_EXITCODE 1) | ||
set_cache_value(HAVE_COMPATIBLE_ILOGB0_EXITCODE 0) | ||
set_cache_value(HAVE_COMPATIBLE_ILOGBNAN_EXITCODE 1) | ||
set_cache_value(HAVE_COMPATIBLE_LOG10_EXITCODE 0) | ||
set_cache_value(HAVE_COMPATIBLE_LOG_EXITCODE 0) | ||
set_cache_value(HAVE_COMPATIBLE_POW_EXITCODE 0) | ||
set_cache_value(HAVE_FUNCTIONAL_PTHREAD_ROBUST_MUTEXES_EXITCODE 1) | ||
set_cache_value(HAVE_LARGE_SNPRINTF_SUPPORT_EXITCODE 0) | ||
set_cache_value(HAVE_MMAP_DEV_ZERO_EXITCODE 1) | ||
set_cache_value(HAVE_PROCFS_CTL_EXITCODE 1) | ||
set_cache_value(HAVE_PROCFS_MAPS_EXITCODE 1) | ||
set_cache_value(HAVE_PROCFS_STATUS_EXITCODE 1) | ||
set_cache_value(HAVE_PROCFS_STAT_EXITCODE 1) | ||
set_cache_value(HAVE_SCHED_GET_PRIORITY_EXITCODE 0) | ||
set_cache_value(HAVE_VALID_NEGATIVE_INF_POW_EXITCODE 0) | ||
set_cache_value(HAVE_VALID_POSITIVE_INF_POW_EXITCODE 0) | ||
set_cache_value(HAVE_WORKING_CLOCK_GETTIME_EXITCODE 0) | ||
set_cache_value(HAVE_WORKING_GETTIMEOFDAY_EXITCODE 0) | ||
set_cache_value(MMAP_ANON_IGNORES_PROTECTION_EXITCODE 1) | ||
set_cache_value(ONE_SHARED_MAPPING_PER_FILEREGION_PER_PROCESS_EXITCODE 1) | ||
set_cache_value(PTHREAD_CREATE_MODIFIES_ERRNO_EXITCODE 1) | ||
set_cache_value(REALPATH_SUPPORTS_NONEXISTENT_FILES_EXITCODE 1) | ||
set_cache_value(SEM_INIT_MODIFIES_ERRNO_EXITCODE 1) | ||
set_cache_value(SSCANF_CANNOT_HANDLE_MISSING_EXPONENT_EXITCODE 1) | ||
set_cache_value(SSCANF_SUPPORT_ll_EXITCODE 0) | ||
set_cache_value(UNGETC_NOT_RETURN_EOF_EXITCODE 1) | ||
set_cache_value(HAVE_SHM_OPEN_THAT_WORKS_WELL_ENOUGH_WITH_MMAP_EXITCODE 1) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.