diff options
| author | Ralf Jung <post@ralfj.de> | 2024-11-30 19:24:41 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-30 19:24:41 +0100 |
| commit | 2aee158761b630d61cba3dddbb8c83912e9f77e9 (patch) | |
| tree | 483d1726eda06ce7e891b48f155526ae866c0d87 | |
| parent | 3029e09e2f751ecf37f3840e45281e66cdea8477 (diff) | |
| parent | 9b6dfdd2abdf5f33f784c5e8f04506f9cd0c72aa (diff) | |
| download | rust-2aee158761b630d61cba3dddbb8c83912e9f77e9.tar.gz rust-2aee158761b630d61cba3dddbb8c83912e9f77e9.zip | |
Rollup merge of #133571 - madsmtm:visionos-support-std, r=Noratrieb
Mark visionOS as supporting `std` Cargo's -Zbuild-std has recently started checking this field, which causes it to fail to compile even though we have full support for the standard library on these targets. [Example of failed build](https://github.com/rust-random/getrandom/actions/runs/12069033154/job/33655430622). Affected targets: `aarch64-apple-visionos` and `aarch64-apple-visionos-sim`. r? Noratrieb (because you've worked with `rustc` target metadata IIRC) ``@rustbot`` label O-visionos
| -rw-r--r-- | compiler/rustc_target/src/spec/targets/aarch64_apple_visionos.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_target/src/spec/targets/aarch64_apple_visionos_sim.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_target/src/spec/targets/aarch64_apple_visionos.rs b/compiler/rustc_target/src/spec/targets/aarch64_apple_visionos.rs index 62d6ffbd34f..9817c5a8eb0 100644 --- a/compiler/rustc_target/src/spec/targets/aarch64_apple_visionos.rs +++ b/compiler/rustc_target/src/spec/targets/aarch64_apple_visionos.rs @@ -9,7 +9,7 @@ pub(crate) fn target() -> Target { description: Some("ARM64 Apple visionOS".into()), tier: Some(3), host_tools: Some(false), - std: Some(false), + std: Some(true), }, pointer_width: 64, data_layout: "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-n32:64-S128-Fn32" diff --git a/compiler/rustc_target/src/spec/targets/aarch64_apple_visionos_sim.rs b/compiler/rustc_target/src/spec/targets/aarch64_apple_visionos_sim.rs index a66c4f6e96b..d411f710540 100644 --- a/compiler/rustc_target/src/spec/targets/aarch64_apple_visionos_sim.rs +++ b/compiler/rustc_target/src/spec/targets/aarch64_apple_visionos_sim.rs @@ -9,7 +9,7 @@ pub(crate) fn target() -> Target { description: Some("ARM64 Apple visionOS simulator".into()), tier: Some(3), host_tools: Some(false), - std: Some(false), + std: Some(true), }, pointer_width: 64, data_layout: "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-n32:64-S128-Fn32" |
