Skip to content
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

cpufeatures: add iOS support (static ARM64 capabilities only) #435

Merged
merged 1 commit into from
May 26, 2021

Conversation

tarcieri
Copy link
Member

@tarcieri tarcieri commented May 26, 2021

All Apple ARM64 hardware has the same baseline set of statically known capabilities which can be assumed on all iOS (and macOS) platforms.

This commit adds support for those statically known capabilities on iOS.

Unfortunately it does not appear to be possible to access the sysctl(3) namespace on iOS in order to determine the availability of other CPU features which aren't part of this baseline set the same way we can on macOS, so a static capability set is the best we can do.

See this issue for more information: #378

All Apple ARM64 hardware has the same baseline set of statically known
capabilities which can be assumed on all iOS (and macOS) platforms.

This commit adds support for those statically known capabilities on iOS.

Unfortunately it does not appear to be possible to access the
`sysctl(3)` namespace on iOS in order to determine the availability of
other CPU features which aren't part of this baseline set the same way
we can on macOS, so a static capability set is the best we can do.

See this issue for more information:

#378
@tarcieri tarcieri requested a review from newpavlov May 26, 2021 20:58
@tarcieri tarcieri merged commit 3707800 into master May 26, 2021
@tarcieri tarcieri deleted the cpufeatures/ios branch May 26, 2021 20:58
@jrose-signal
Copy link
Contributor

Can you tag a release of this one too, please? :-)

@tarcieri
Copy link
Member Author

@jrose-signal released in cpufeatures v0.1.5: #502

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants