Skip to content

Commit bfd16ab

Browse files
committedFeb 9, 2022
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>
1 parent 1f0a968 commit bfd16ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎compiler/rustc_target/src/spec/mips64_openwrt_linux_musl.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use crate::spec::{Target, TargetOptions};
66
pub fn target() -> Target {
77
let mut base = super::linux_musl_base::opts();
88
base.cpu = "mips64r2".to_string();
9-
base.features = "+mips64r2".to_string();
9+
base.features = "+mips64r2,+soft-float".to_string();
1010
base.max_atomic_width = Some(64);
1111
base.crt_static_default = false;
1212

0 commit comments

Comments
 (0)
Please sign in to comment.