Document all Apple targets in rustc's platform support
- Fixed std support in top-level docs. - Added `*-apple-darwin` docs. - Added `i686-apple-darwin` docs. - Moved `aarch64-apple-ios-sim` to `*-apple-ios` and document all the iOS targets there. - Added `*-apple-ios-macabi` docs. - Add myself (madsmtm) as co-maintainer of most of these targets.
This commit is contained in:
parent
06e88c306a
commit
0eb782d383
14 changed files with 376 additions and 177 deletions
|
@ -271,6 +271,7 @@ fn macos_default_deployment_target(arch: Arch) -> (u32, u32) {
|
|||
|
||||
fn macos_deployment_target(arch: Arch) -> (u32, u32) {
|
||||
// If you are looking for the default deployment target, prefer `rustc --print deployment-target`.
|
||||
// Note: If bumping this version, remember to update it in the rustc/platform-support docs.
|
||||
from_set_deployment_target("MACOSX_DEPLOYMENT_TARGET")
|
||||
.unwrap_or_else(|| macos_default_deployment_target(arch))
|
||||
}
|
||||
|
@ -319,6 +320,7 @@ fn link_env_remove(os: &'static str) -> StaticCow<[StaticCow<str>]> {
|
|||
|
||||
fn ios_deployment_target(arch: Arch, abi: &str) -> (u32, u32) {
|
||||
// If you are looking for the default deployment target, prefer `rustc --print deployment-target`.
|
||||
// Note: If bumping this version, remember to update it in the rustc/platform-support docs.
|
||||
let (major, minor) = match (arch, abi) {
|
||||
(Arm64e, _) => (14, 0),
|
||||
// Mac Catalyst defaults to 13.1 in Clang.
|
||||
|
@ -351,6 +353,7 @@ pub fn ios_sim_llvm_target(arch: Arch) -> String {
|
|||
|
||||
fn tvos_deployment_target() -> (u32, u32) {
|
||||
// If you are looking for the default deployment target, prefer `rustc --print deployment-target`.
|
||||
// Note: If bumping this version, remember to update it in the rustc platform-support docs.
|
||||
from_set_deployment_target("TVOS_DEPLOYMENT_TARGET").unwrap_or((10, 0))
|
||||
}
|
||||
|
||||
|
@ -366,6 +369,7 @@ pub fn tvos_sim_llvm_target(arch: Arch) -> String {
|
|||
|
||||
fn watchos_deployment_target() -> (u32, u32) {
|
||||
// If you are looking for the default deployment target, prefer `rustc --print deployment-target`.
|
||||
// Note: If bumping this version, remember to update it in the rustc platform-support docs.
|
||||
from_set_deployment_target("WATCHOS_DEPLOYMENT_TARGET").unwrap_or((5, 0))
|
||||
}
|
||||
|
||||
|
@ -381,6 +385,7 @@ pub fn watchos_sim_llvm_target(arch: Arch) -> String {
|
|||
|
||||
fn visionos_deployment_target() -> (u32, u32) {
|
||||
// If you are looking for the default deployment target, prefer `rustc --print deployment-target`.
|
||||
// Note: If bumping this version, remember to update it in the rustc platform-support docs.
|
||||
from_set_deployment_target("XROS_DEPLOYMENT_TARGET").unwrap_or((1, 0))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue