From a4c0add473035060bcd3286f581b276337adf672 Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Wed, 2 Oct 2024 21:34:20 +0200 Subject: [PATCH] Add `target_env = "freestanding"` --- .../src/spec/targets/aarch64_nintendo_switch_freestanding.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/rustc_target/src/spec/targets/aarch64_nintendo_switch_freestanding.rs b/compiler/rustc_target/src/spec/targets/aarch64_nintendo_switch_freestanding.rs index 1f1cd96632675..9bf36a847425f 100644 --- a/compiler/rustc_target/src/spec/targets/aarch64_nintendo_switch_freestanding.rs +++ b/compiler/rustc_target/src/spec/targets/aarch64_nintendo_switch_freestanding.rs @@ -23,6 +23,7 @@ pub(crate) fn target() -> Target { linker: Some("rust-lld".into()), link_script: Some(LINKER_SCRIPT.into()), os: "horizon".into(), + env: "freestanding".into(), vendor: "nintendo".into(), max_atomic_width: Some(128), stack_probes: StackProbeType::Inline,