Skip to content

Commit 649810d

Browse files
committed
Add platform markdown description
1 parent cba0a05 commit 649810d

File tree

3 files changed

+55
-0
lines changed

3 files changed

+55
-0
lines changed

src/doc/rustc/src/SUMMARY.md

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
- [aarch64-apple-ios-sim](platform-support/aarch64-apple-ios-sim.md)
2121
- [\*-apple-tvos](platform-support/apple-tvos.md)
2222
- [\*-apple-watchos\*](platform-support/apple-watchos.md)
23+
- [aarch64-apple-xros\*](platform-support/apple-xros.md)
2324
- [aarch64-nintendo-switch-freestanding](platform-support/aarch64-nintendo-switch-freestanding.md)
2425
- [armeb-unknown-linux-gnueabi](platform-support/armeb-unknown-linux-gnueabi.md)
2526
- [arm-none-eabi](platform-support/arm-none-eabi.md)

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

+2
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,8 @@ target | std | host | notes
241241
[`aarch64-apple-tvos-sim`](platform-support/apple-tvos.md) | ? | | ARM64 tvOS Simulator
242242
[`aarch64-apple-watchos`](platform-support/apple-watchos.md) | ✓ | | ARM64 Apple WatchOS
243243
[`aarch64-apple-watchos-sim`](platform-support/apple-watchos.md) | ✓ | | ARM64 Apple WatchOS Simulator
244+
[`aarch64-apple-xros`](platform-support/apple-xros.md) | ✓ | | ARM64 Apple visionOS
245+
[`aarch64-apple-xros-sim`](platform-support/apple-xros.md) | ✓ | | ARM64 Apple visionOS Simulator
244246
[`aarch64-kmc-solid_asp3`](platform-support/kmc-solid.md) | ✓ | | ARM64 SOLID with TOPPERS/ASP3
245247
[`aarch64-nintendo-switch-freestanding`](platform-support/aarch64-nintendo-switch-freestanding.md) | * | | ARM64 Nintendo Switch, Horizon
246248
[`aarch64-pc-windows-gnullvm`](platform-support/pc-windows-gnullvm.md) | ✓ | ✓ |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# aarch64-apple-xros\*
2+
3+
- aarch64-apple-xros
4+
- aarch64-apple-xros-sim
5+
6+
**Tier: 3**
7+
8+
Apple visionOS targets:
9+
10+
- Apple visionOS on arm64
11+
- Apple visionOS Simulator on arm64
12+
13+
## Target maintainers
14+
15+
- [@agg23](https://github.com/agg23)
16+
17+
## Requirements
18+
19+
These targets are cross-compiled.
20+
To build these targets Xcode 15 or higher on macOS is required.
21+
22+
## Building the target
23+
24+
The targets can be built by enabling them for a `rustc` build, for example:
25+
26+
```toml
27+
[build]
28+
build-stage = 1
29+
target = ["aarch64-apple-xros-sim"]
30+
```
31+
32+
## Building Rust programs
33+
34+
_Note: Building for this target requires the corresponding visionOS SDK, as provided by Xcode 15+._
35+
36+
Rust programs can be built for these targets, if `rustc` has been built with support for them, for example:
37+
38+
```text
39+
rustc --target aarch64-apple-xros-sim your-code.rs
40+
```
41+
42+
## Testing
43+
44+
There is no support for running the Rust testsuite on visionOS or the simulators.
45+
46+
There is no easy way to run simple programs on visionOS or the visionOS simulators. Static library builds can be embedded into visionOS applications.
47+
48+
## Cross-compilation toolchains and C code
49+
50+
This target can be cross-compiled from x86_64 or aarch64 macOS hosts.
51+
52+
Other hosts are not supported for cross-compilation, but might work when also providing the required Xcode SDK.

0 commit comments

Comments
 (0)