From 176508ce960c6837a1419ada2d4bca0f1b07cb1f Mon Sep 17 00:00:00 2001 From: beetrees Date: Tue, 30 Jul 2024 12:38:06 +0100 Subject: [PATCH] Match LLVM ABI in `extern "C"` functions for `f128` on Windows --- std/build.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/std/build.rs b/std/build.rs index c542ba81eedc1..9b58dd53ba20a 100644 --- a/std/build.rs +++ b/std/build.rs @@ -94,7 +94,7 @@ fn main() { // Unsupported ("arm64ec", _) => false, // MinGW ABI bugs - ("x86", "windows") => false, + ("x86_64", "windows") => false, // x86 has ABI bugs that show up with optimizations. This should be partially fixed with // the compiler-builtins update. ("x86" | "x86_64", _) => false, @@ -122,6 +122,8 @@ fn main() { ("nvptx64", _) => false, // ABI unsupported ("sparc", _) => false, + // MinGW ABI bugs + ("x86_64", "windows") => false, // 64-bit Linux is about the only platform to have f128 symbols by default (_, "linux") if target_pointer_width == 64 => true, // Same as for f16, except MacOS is also missing f128 symbols.