Description
In #124089 (review), it was pointed out that there's not an easy way to know the minimum version of an apple OS that is supported. One must kind of grep for *_DEPLOYMENT_TARGET
and then parse the output to retrieve an answer and get an answer.
If I read the source correctly, the minimum supported versions currently are:
- watchOS 5.0
- tvOS 10.0
- visionOS 1.0
- macOS 10.12 for non arm and 11.0 for arm macOS
- iOS 14 for arm64e, 13.1 for mac catalyst and 10.0 otherwise
The versions are occasionally bumped up as in rust-lang/compiler-team#556 and so it would be good write them down in a more human readable form.
This has lead to various code comments about version support for various platforms being a little inconsistent. It is possible this comment is to mean "minimum version of this syscall" but that is unclear.
I will admit that I'm not certain as to the best way to do this. Adding these to the platform support docs seems like the right choice. Perhaps also in the specific platform support page
Some of the tier 3 pages list a minimum and some do not. arm64e-apple-ios
for example lists 12.0+ and arm64e-apple-darwin
lists 11+ however watchOS and tvOS do not.
Perhaps related: I am unfamiliar with target triples arm64e-apple-ios
and arm64e-apple-darwin
. Are these actually used?
CC: @madsmtm