From b4f2c0dcb94fb719ebdeeb9d5d7b27811be9a156 Mon Sep 17 00:00:00 2001 From: Jakub Konka Date: Sun, 19 Jun 2022 15:12:05 +0200 Subject: [PATCH] compiler-rt: fix logic for choosing `__gnu_{f2h,h2f}_ieee` Similar to wasm32-wasi-musl, Apple targets also want standard symbol names. --- lib/compiler_rt/common.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/compiler_rt/common.zig b/lib/compiler_rt/common.zig index 8f9253b44b..b6e4a5d311 100644 --- a/lib/compiler_rt/common.zig +++ b/lib/compiler_rt/common.zig @@ -34,7 +34,7 @@ pub const want_ppc_abi = builtin.cpu.arch.isPPC() or builtin.cpu.arch.isPPC64(); /// wasm32-freestanding-none => false /// x86_64-windows-gnu => true /// x86_64-windows-msvc => true -/// any-macos-any => doesn't matter; libSystem has both symbol flavors +/// any-macos-any => false pub const gnu_f16_abi = switch (builtin.cpu.arch) { .wasm32, .wasm64 => false, @@ -43,7 +43,7 @@ pub const gnu_f16_abi = switch (builtin.cpu.arch) { else => true, }, - else => true, + else => !builtin.os.tag.isDarwin(), }; pub const want_sparc_abi = builtin.cpu.arch.isSPARC();