about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-02-18 23:23:06 +0100
committerGitHub <noreply@github.com>2022-02-18 23:23:06 +0100
commit32c8acd769bdf8d649b8eba3b382a98f22827df5 (patch)
treec0b07d266866b643ecd9b26f17bbf5d2f745355c /compiler
parente3a1e192960c41acc196b59f0cb1b28f78e712f8 (diff)
parentbfd16ab109dcdaf1a7ddfef9f1f39e9e5f2218df (diff)
downloadrust-32c8acd769bdf8d649b8eba3b382a98f22827df5.tar.gz
rust-32c8acd769bdf8d649b8eba3b382a98f22827df5.zip
Rollup merge of #93814 - Itus-Shield:mips64-openwrt, r=bjorn3
mips64-openwrt-linux-musl: correct soft-foat

MIPS64 targets under OpenWrt require soft-float fpu support.

Rust-lang requires soft-float defined in tuple definition and
isn't over-ridden by toolchain compile-time CFLAGS/LDFLAGS

Set explicit soft-float for tuple.

Signed-off-by: Donald Hoskins <grommish@gmail.com>
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_target/src/spec/mips64_openwrt_linux_musl.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_target/src/spec/mips64_openwrt_linux_musl.rs b/compiler/rustc_target/src/spec/mips64_openwrt_linux_musl.rs
index 1199ed44202..5991cd8bfa9 100644
--- a/compiler/rustc_target/src/spec/mips64_openwrt_linux_musl.rs
+++ b/compiler/rustc_target/src/spec/mips64_openwrt_linux_musl.rs
@@ -6,7 +6,7 @@ use crate::spec::{Target, TargetOptions};
 pub fn target() -> Target {
     let mut base = super::linux_musl_base::opts();
     base.cpu = "mips64r2".to_string();
-    base.features = "+mips64r2".to_string();
+    base.features = "+mips64r2,+soft-float".to_string();
     base.max_atomic_width = Some(64);
     base.crt_static_default = false;