std: Set has_reliable_f16 to false for MIPS targets in build.rs · model-checking/verify-rust-std@e6f15c5 (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit e6f15c5

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.

File tree

1 file changed

lines changed

1 file changed

lines changed

Lines changed: 2 additions & 0 deletions

Original file line number Diff line number Diff line change
@@ -100,6 +100,8 @@ fn main() {
100 100 ("x86" | "x86_64", _) => false,
101 101 // Missing `__gnu_h2f_ieee` and `__gnu_f2h_ieee`
102 102 ("powerpc" | "powerpc64", _) => false,
103 +// Missing `__gnu_h2f_ieee` and `__gnu_f2h_ieee`
104 +("mips" | "mips32r6" "mips64"
103 105 // Missing `__extendhfsf` and `__truncsfhf`
104 106 ("riscv32" | "riscv64", _) => false,
105 107 // Most OSs are missing `__extendhfsf` and `__truncsfhf`