Commit b4f2c0dcb9

Jakub Konka <kubkon@jakubkonka.com>
2022-06-19 15:12:05
compiler-rt: fix logic for choosing `__gnu_{f2h,h2f}_ieee`
Similar to wasm32-wasi-musl, Apple targets also want standard symbol names.
1 parent 0912382
Changed files (1)
lib
compiler_rt
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();