Skip to content

Commit

Permalink
mips64-openwrt-linux-musl: correct soft-foat
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Grommish committed Feb 9, 2022
1 parent 1f0a968 commit bfd16ab
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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;

Expand Down

0 comments on commit bfd16ab

Please sign in to comment.