Skip to content

Commit 196a7ea

Browse files
committed
Auto merge of #152021 - madsmtm:tvos-visionos-watchos-tier-2, r=<try>
Bump tvOS, visionOS and watchOS Aarch64 targets to tier 2 try-job: dist-apple-various
2 parents f60a0f1 + 39f653a commit 196a7ea

11 files changed

Lines changed: 42 additions & 43 deletions

File tree

compiler/rustc_target/src/spec/targets/aarch64_apple_tvos.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub(crate) fn target() -> Target {
77
llvm_target,
88
metadata: TargetMetadata {
99
description: Some("ARM64 Apple tvOS".into()),
10-
tier: Some(3),
10+
tier: Some(2),
1111
host_tools: Some(false),
1212
std: Some(true),
1313
},

compiler/rustc_target/src/spec/targets/aarch64_apple_tvos_sim.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub(crate) fn target() -> Target {
77
llvm_target,
88
metadata: TargetMetadata {
99
description: Some("ARM64 Apple tvOS Simulator".into()),
10-
tier: Some(3),
10+
tier: Some(2),
1111
host_tools: Some(false),
1212
std: Some(true),
1313
},

compiler/rustc_target/src/spec/targets/aarch64_apple_visionos.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub(crate) fn target() -> Target {
77
llvm_target,
88
metadata: TargetMetadata {
99
description: Some("ARM64 Apple visionOS".into()),
10-
tier: Some(3),
10+
tier: Some(2),
1111
host_tools: Some(false),
1212
std: Some(true),
1313
},

compiler/rustc_target/src/spec/targets/aarch64_apple_visionos_sim.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub(crate) fn target() -> Target {
77
llvm_target,
88
metadata: TargetMetadata {
99
description: Some("ARM64 Apple visionOS simulator".into()),
10-
tier: Some(3),
10+
tier: Some(2),
1111
host_tools: Some(false),
1212
std: Some(true),
1313
},

compiler/rustc_target/src/spec/targets/aarch64_apple_watchos.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub(crate) fn target() -> Target {
77
llvm_target,
88
metadata: TargetMetadata {
99
description: Some("ARM64 Apple watchOS".into()),
10-
tier: Some(3),
10+
tier: Some(2),
1111
host_tools: Some(false),
1212
std: Some(true),
1313
},

compiler/rustc_target/src/spec/targets/aarch64_apple_watchos_sim.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub(crate) fn target() -> Target {
77
llvm_target,
88
metadata: TargetMetadata {
99
description: Some("ARM64 Apple watchOS Simulator".into()),
10-
tier: Some(3),
10+
tier: Some(2),
1111
host_tools: Some(false),
1212
std: Some(true),
1313
},

src/ci/github-actions/jobs.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,13 @@ auto:
467467

468468
- name: dist-apple-various
469469
env:
470-
SCRIPT: ./x.py dist bootstrap --include-default-paths --host='' --target=aarch64-apple-ios,x86_64-apple-ios,aarch64-apple-ios-sim,aarch64-apple-ios-macabi,x86_64-apple-ios-macabi
470+
# Build and distribute the standard library for these targets.
471+
TARGETS: "aarch64-apple-ios,aarch64-apple-ios-sim,x86_64-apple-ios,\
472+
aarch64-apple-ios-macabi,x86_64-apple-ios-macabi,\
473+
aarch64-apple-tvos,aarch64-apple-tvos-sim,\
474+
aarch64-apple-visionos,aarch64-apple-visionos-sim,\
475+
aarch64-apple-watchos,aarch64-apple-watchos-sim"
476+
SCRIPT: ./x.py dist bootstrap --include-default-paths --host='' --target=$TARGETS
471477
# Mac Catalyst cannot currently compile the sanitizer:
472478
# https://github.com/rust-lang/rust/issues/129069
473479
RUST_CONFIGURE_ARGS: --enable-sanitizers --enable-profiler --set rust.jemalloc --set target.aarch64-apple-ios-macabi.sanitizers=false --set target.x86_64-apple-ios-macabi.sanitizers=false

src/doc/rustc/src/platform-support.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,12 @@ target | std | notes
148148
[`aarch64-apple-ios`](platform-support/apple-ios.md) | ✓ | ARM64 iOS
149149
[`aarch64-apple-ios-macabi`](platform-support/apple-ios-macabi.md) | ✓ | Mac Catalyst on ARM64
150150
[`aarch64-apple-ios-sim`](platform-support/apple-ios.md) | ✓ | Apple iOS Simulator on ARM64
151+
[`aarch64-apple-tvos`](platform-support/apple-tvos.md) | ✓ | ARM64 tvOS
152+
[`aarch64-apple-tvos-sim`](platform-support/apple-tvos.md) | ✓ | ARM64 tvOS Simulator
153+
[`aarch64-apple-visionos`](platform-support/apple-visionos.md) | ✓ | ARM64 Apple visionOS
154+
[`aarch64-apple-visionos-sim`](platform-support/apple-visionos.md) | ✓ | ARM64 Apple visionOS Simulator
155+
[`aarch64-apple-watchos`](platform-support/apple-watchos.md) | ✓ | ARM64 Apple WatchOS
156+
[`aarch64-apple-watchos-sim`](platform-support/apple-watchos.md) | ✓ | ARM64 Apple WatchOS Simulator
151157
[`aarch64-linux-android`](platform-support/android.md) | ✓ | ARM64 Android
152158
[`aarch64-unknown-fuchsia`](platform-support/fuchsia.md) | ✓ | ARM64 Fuchsia
153159
[`aarch64-unknown-none`](platform-support/aarch64-unknown-none.md) | * | Bare ARM64, hardfloat
@@ -249,12 +255,6 @@ host tools.
249255

250256
target | std | host | notes
251257
-------|:---:|:----:|-------
252-
[`aarch64-apple-tvos`](platform-support/apple-tvos.md) | ✓ | | ARM64 tvOS
253-
[`aarch64-apple-tvos-sim`](platform-support/apple-tvos.md) | ✓ | | ARM64 tvOS Simulator
254-
[`aarch64-apple-visionos`](platform-support/apple-visionos.md) | ✓ | | ARM64 Apple visionOS
255-
[`aarch64-apple-visionos-sim`](platform-support/apple-visionos.md) | ✓ | | ARM64 Apple visionOS Simulator
256-
[`aarch64-apple-watchos`](platform-support/apple-watchos.md) | ✓ | | ARM64 Apple WatchOS
257-
[`aarch64-apple-watchos-sim`](platform-support/apple-watchos.md) | ✓ | | ARM64 Apple WatchOS Simulator
258258
[`aarch64-kmc-solid_asp3`](platform-support/kmc-solid.md) | ✓ | | ARM64 SOLID with TOPPERS/ASP3
259259
[`aarch64-nintendo-switch-freestanding`](platform-support/aarch64-nintendo-switch-freestanding.md) | * | | ARM64 Nintendo Switch, Horizon
260260
[`aarch64-unknown-freebsd`](platform-support/freebsd.md) | ✓ | ✓ | ARM64 FreeBSD

src/doc/rustc/src/platform-support/apple-tvos.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@
22

33
Apple tvOS targets.
44

5-
**Tier: 3**
5+
**Tier: 2 (without Host Tools)**
66

77
- `aarch64-apple-tvos`: Apple tvOS on ARM64.
88
- `aarch64-apple-tvos-sim`: Apple tvOS Simulator on ARM64.
9+
10+
**Tier: 3**
11+
912
- `x86_64-apple-tvos`: Apple tvOS Simulator on x86_64.
1013

1114
## Target maintainers
@@ -52,16 +55,13 @@ The following APIs are currently known to have missing or incomplete support:
5255

5356
## Building the target
5457

55-
The targets can be built by enabling them for a `rustc` build in
56-
`bootstrap.toml`, by adding, for example:
57-
58-
```toml
59-
[build]
60-
build-stage = 1
61-
target = ["aarch64-apple-tvos", "aarch64-apple-tvos-sim"]
58+
The tier 2 targets are distributed through `rustup`, and can be installed using one of:
59+
```console
60+
$ rustup target add aarch64-apple-tvos
61+
$ rustup target add aarch64-apple-tvos-sim
6262
```
6363

64-
Using the unstable `-Zbuild-std` with a nightly Cargo may also work.
64+
See [the instructions for iOS](./apple-ios.md#building-the-target) for how to build the other target.
6565

6666
## Building Rust programs
6767

src/doc/rustc/src/platform-support/apple-visionos.md

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Apple visionOS / xrOS targets.
44

5-
**Tier: 3**
5+
**Tier: 2 (without Host Tools)**
66

77
- `aarch64-apple-visionos`: Apple visionOS on arm64.
88
- `aarch64-apple-visionos-sim`: Apple visionOS Simulator on arm64.
@@ -31,19 +31,12 @@ case `XROS_DEPLOYMENT_TARGET`.
3131

3232
## Building the target
3333

34-
The targets can be built by enabling them for a `rustc` build in
35-
`bootstrap.toml`, by adding, for example:
36-
37-
```toml
38-
[build]
39-
target = ["aarch64-apple-visionos", "aarch64-apple-visionos-sim"]
34+
The targets are distributed through `rustup`, and can be installed using one of:
35+
```console
36+
$ rustup target add aarch64-apple-visionos
37+
$ rustup target add aarch64-apple-visionos-sim
4038
```
4139

42-
Using the unstable `-Zbuild-std` with a nightly Cargo may also work.
43-
44-
Note: Currently, a newer version of `libc` and `cc` may be required, this will
45-
be fixed in [#124560](https://github.com/rust-lang/rust/pull/124560).
46-
4740
## Building Rust programs
4841

4942
See [the instructions for iOS](./apple-ios.md#building-rust-programs).

0 commit comments

Comments
 (0)