forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#85781 - badboy:document-aarch-ios-sim-suppo…
…rt, r=Amanieu Add documentation for aarch64-apple-ios-sim target Documentation as requested for [MCP 428](rust-lang/compiler-team#428) to promote this target to Tier 2. Currently it calls out that it's Tier 3. That should be changed if this target is promoted, but this PR could also land before that. Note: probably should get signoff from the compiler team based on that MCP.
- Loading branch information
Showing
4 changed files
with
59 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
src/doc/rustc/src/platform-support/aarch64-apple-ios-sim.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# aarch64-apple-ios-sim | ||
|
||
**Tier: 3** | ||
|
||
Apple iOS Simulator on ARM64. | ||
|
||
## Designated Developers | ||
|
||
* [@badboy](https://github.com/badboy) | ||
* [@deg4uss3r](https://github.com/deg4uss3r) | ||
|
||
## Requirements | ||
|
||
This target is cross-compiled. | ||
To build this target Xcode 12 or higher on macOS is required. | ||
|
||
## Building | ||
|
||
The target can be built by enabling it for a `rustc` build: | ||
|
||
```toml | ||
[build] | ||
build-stage = 1 | ||
target = ["aarch64-apple-ios-sim"] | ||
``` | ||
|
||
## Cross-compilation | ||
|
||
This target can be cross-compiled from `x86_64` or `aarch64` macOS hosts. | ||
|
||
Other hosts are not supported for cross-compilation, but might work when also providing the required Xcode SDK. | ||
|
||
## Testing | ||
|
||
Currently there is no support to run the rustc test suite for this target. | ||
|
||
|
||
## Building Rust programs | ||
|
||
*Note: Building for this target requires the corresponding iOS SDK, as provided by Xcode 12+.* | ||
|
||
If `rustc` has support for that target and the library artifacts are available, | ||
then Rust programs can be built for that target: | ||
|
||
```text | ||
rustc --target aarch64-apple-ios-sim your-code.rs | ||
``` | ||
|
||
On Rust Nightly it is possible to build without the target artifacts available: | ||
|
||
```text | ||
cargo build -Z build-std --target aarch64-apple-ios-sim | ||
``` | ||
|
||
There is no easy way to run simple programs in the iOS simulator. | ||
Static library builds can be embedded into iOS applications. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters