From affe52b590621a69fe706daa22c753ba21752619 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 2 Aug 2022 17:14:38 -0700 Subject: [PATCH] compiler_rt: use standard f16 function names on x86 LLVM 15 started generating calls to the standard name now. --- lib/compiler_rt/common.zig | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/compiler_rt/common.zig b/lib/compiler_rt/common.zig index 3f91a0c79b..d57c5b3656 100644 --- a/lib/compiler_rt/common.zig +++ b/lib/compiler_rt/common.zig @@ -40,7 +40,13 @@ pub const want_windows_v2u64_abi = builtin.os.tag == .windows and builtin.cpu.ar /// x86_64-windows-msvc => true /// any-macos-any => false pub const gnu_f16_abi = switch (builtin.cpu.arch) { - .wasm32, .wasm64, .riscv64, .riscv32 => false, + .wasm32, + .wasm64, + .riscv64, + .riscv32, + .i386, + .x86_64, + => false, .arm, .armeb, .thumb, .thumbeb => switch (builtin.abi) { .eabi, .eabihf => false,