Skip to content

Commit 62aafb0

Browse files
committed
Rename aarch64-nintendo-switch to aarch64-nintendo-switch-freestanding
1 parent d04753e commit 62aafb0

6 files changed

+8
-8
lines changed

compiler/rustc_target/src/spec/aarch64_nintendo_switch.rs compiler/rustc_target/src/spec/aarch64_nintendo_switch_freestanding.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use super::{LinkerFlavor, LldFlavor, PanicStrategy, RelroLevel, Target, TargetOptions};
22

3-
const LINKER_SCRIPT: &str = include_str!("./aarch64_nintendo_switch_linker_script.ld");
3+
const LINKER_SCRIPT: &str = include_str!("./aarch64_nintendo_switch_freestanding_linker_script.ld");
44

55
/// A base target for Nintendo Switch devices using a pure LLVM toolchain.
66
pub fn target() -> Target {

compiler/rustc_target/src/spec/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1035,7 +1035,7 @@ supported_targets! {
10351035

10361036
("armv6k-nintendo-3ds", armv6k_nintendo_3ds),
10371037

1038-
("aarch64-nintendo-switch", aarch64_nintendo_switch),
1038+
("aarch64-nintendo-switch-freestanding", aarch64_nintendo_switch_freestanding),
10391039

10401040
("armv7-unknown-linux-uclibceabi", armv7_unknown_linux_uclibceabi),
10411041
("armv7-unknown-linux-uclibceabihf", armv7_unknown_linux_uclibceabihf),

src/doc/rustc/src/SUMMARY.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
- [Template for Target-specific Documentation](platform-support/TEMPLATE.md)
1818
- [aarch64-apple-ios-sim](platform-support/aarch64-apple-ios-sim.md)
1919
- [\*-apple-watchos\*](platform-support/apple-watchos.md)
20-
- [aarch64-nintendo-switch](platform-support/aarch64-nintendo-switch.md)
20+
- [aarch64-nintendo-switch-freestanding](platform-support/aarch64-nintendo-switch-freestanding.md)
2121
- [armv6k-nintendo-3ds](platform-support/armv6k-nintendo-3ds.md)
2222
- [armv7-unknown-linux-uclibceabi](platform-support/armv7-unknown-linux-uclibceabi.md)
2323
- [armv7-unknown-linux-uclibceabihf](platform-support/armv7-unknown-linux-uclibceabihf.md)

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ target | std | host | notes
209209
`aarch64-apple-tvos` | * | | ARM64 tvOS
210210
[`aarch64-apple-watchos-sim`](platform-support/apple-watchos.md) | ✓ | | ARM64 Apple WatchOS Simulator
211211
[`aarch64-kmc-solid_asp3`](platform-support/kmc-solid.md) | ✓ | | ARM64 SOLID with TOPPERS/ASP3
212-
[`aarch64-nintendo-switch`](platform-support/aarch64-nintendo-switch.md) | * | | ARM64 Nintendo Switch, Horizon
212+
[`aarch64-nintendo-switch-freestanding`](platform-support/aarch64-nintendo-switch-freestanding.md) | * | | ARM64 Nintendo Switch, Horizon
213213
[`aarch64-pc-windows-gnullvm`](platform-support/pc-windows-gnullvm.md) | ✓ | ✓ |
214214
`aarch64-unknown-freebsd` | ✓ | ✓ | ARM64 FreeBSD
215215
`aarch64-unknown-hermit` | ✓ | | ARM64 HermitCore

src/doc/rustc/src/platform-support/aarch64-nintendo-switch.md src/doc/rustc/src/platform-support/aarch64-nintendo-switch-freestanding.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# aarch64-nintendo-switch
1+
# aarch64-nintendo-switch-freestanding
22

33
**Tier: 3**
44

@@ -21,7 +21,7 @@ The target can be built by enabling it for a `rustc` build:
2121
```toml
2222
[build]
2323
build-stage = 1
24-
target = ["aarch64-nintendo-switch"]
24+
target = ["aarch64-nintendo-switch-freestanding"]
2525
```
2626

2727
## Cross-compilation
@@ -38,12 +38,12 @@ If `rustc` has support for that target and the library artifacts are available,
3838
then Rust programs can be built for that target:
3939

4040
```text
41-
rustc --target aarch64-nintendo-switch your-code.rs
41+
rustc --target aarch64-nintendo-switch-freestanding your-code.rs
4242
```
4343

4444
To generate binaries in the NRO format that can be easily run on-device, you
4545
can use [cargo-nx](https://github.com/aarch64-switch-rs/cargo-nx):
4646

4747
```text
48-
cargo nx --triple=aarch64-nintendo-switch
48+
cargo nx --triple=aarch64-nintendo-switch-freestanding
4949
```

0 commit comments

Comments
 (0)