Skip to content

Commit e6f15c5

Browse files
author
Martin Nordholts
committed
std: Set has_reliable_f16 to false for MIPS targets in build.rs
To avoid this linker error: $ sudo apt install libc6-mips-cross gcc-mips-linux-gnu $ CC_mips_unknown_linux_gnu=mips-linux-gnu-gcc \ CARGO_TARGET_MIPS_UNKNOWN_LINUX_GNU_LINKER=mips-linux-gnu-gcc \ ./x test library/std --target mips-unknown-linux-gnu undefined reference to `__gnu_f2h_ieee' You get the same linker error also with mipsel, mips64 and mips64el toolchains.
1 parent 67535b6 commit e6f15c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

std/build.rs

+2
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ fn main() {
100100
("x86" | "x86_64", _) => false,
101101
// Missing `__gnu_h2f_ieee` and `__gnu_f2h_ieee`
102102
("powerpc" | "powerpc64", _) => false,
103+
// Missing `__gnu_h2f_ieee` and `__gnu_f2h_ieee`
104+
("mips" | "mips32r6" | "mips64" | "mips64r6", _) => false,
103105
// Missing `__extendhfsf` and `__truncsfhf`
104106
("riscv32" | "riscv64", _) => false,
105107
// Most OSs are missing `__extendhfsf` and `__truncsfhf`

0 commit comments

Comments
 (0)