Skip to content

Commit 42aa075

Browse files
author
David Koloski
committed
Accept old spelling of Fuchsia target triples
Because the old spelling is widely used, some projects may need time to migrate their uses to the new triple spelling. The old spelling may eventually be removed altogether.
1 parent f6ef039 commit 42aa075

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pub use crate::spec::aarch64_unknown_fuchsia::target;

compiler/rustc_target/src/spec/mod.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,7 @@ impl fmt::Display for StackProtector {
981981
}
982982

983983
macro_rules! supported_targets {
984-
( $(($triple:literal, $module:ident ),)+ ) => {
984+
( $(($triple:literal, $module:ident),)+ ) => {
985985
$(mod $module;)+
986986

987987
/// List of supported targets
@@ -1109,7 +1109,11 @@ supported_targets! {
11091109
("x86_64-apple-darwin", x86_64_apple_darwin),
11101110
("i686-apple-darwin", i686_apple_darwin),
11111111

1112+
// FIXME(fuchsia): Remove aarch64-fuchsia in favor of aarch64-unknown-fuchsia
1113+
("aarch64-fuchsia", aarch64_fuchsia),
11121114
("aarch64-unknown-fuchsia", aarch64_unknown_fuchsia),
1115+
// FIXME(fuchsia): Remove x86_64-fuchsia in favor of x86_64-unknown-fuchsia
1116+
("x86_64-fuchsia", x86_64_fuchsia),
11131117
("x86_64-unknown-fuchsia", x86_64_unknown_fuchsia),
11141118

11151119
("avr-unknown-gnu-atmega328", avr_unknown_gnu_atmega328),
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pub use crate::spec::x86_64_unknown_fuchsia::target;

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

+2
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ target | std | notes
124124
-------|:---:|-------
125125
`aarch64-apple-ios` | ✓ | ARM64 iOS
126126
[`aarch64-apple-ios-sim`](platform-support/aarch64-apple-ios-sim.md) | ✓ | Apple iOS Simulator on ARM64
127+
`aarch64-fuchsia` | ✓ | Alias for `aarch64-unknown-fuchsia`
127128
`aarch64-unknown-fuchsia` | ✓ | ARM64 Fuchsia
128129
[`aarch64-linux-android`](platform-support/android.md) | ✓ | ARM64 Android
129130
`aarch64-unknown-none-softfloat` | * | Bare ARM64, softfloat
@@ -177,6 +178,7 @@ target | std | notes
177178
`wasm32-wasi` | ✓ | WebAssembly with WASI
178179
`x86_64-apple-ios` | ✓ | 64-bit x86 iOS
179180
[`x86_64-fortanix-unknown-sgx`](platform-support/x86_64-fortanix-unknown-sgx.md) | ✓ | [Fortanix ABI] for 64-bit Intel SGX
181+
`x86_64-fuchsia` | ✓ | Alias for `x86_64-unknown-fuchsia`
180182
`x86_64-unknown-fuchsia` | ✓ | 64-bit Fuchsia
181183
[`x86_64-linux-android`](platform-support/android.md) | ✓ | 64-bit x86 Android
182184
`x86_64-pc-solaris` | ✓ | 64-bit Solaris 10/11, illumos

0 commit comments

Comments
 (0)