From 9e1e54d32449dadeb21bc2ce0fe9d246c466ebf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Mon, 19 Jan 2026 20:42:56 +0100 Subject: [PATCH] compiler-rt: additionally export __trunctfhf2 as __trunckfhf2 on powerpc This is the name LLVM 22 expects. --- lib/compiler_rt/trunctfhf2.zig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/compiler_rt/trunctfhf2.zig b/lib/compiler_rt/trunctfhf2.zig index 46c6e34ec957c36713cbf1c79d5f3fc0c1f34043..5af87f9c127180b49a15b8f3906252d7da162d26 100644 --- a/lib/compiler_rt/trunctfhf2.zig +++ b/lib/compiler_rt/trunctfhf2.zig @@ -4,6 +4,9 @@ const truncf = @import("./truncf.zig").truncf; comptime { symbol(&__trunctfhf2, "__trunctfhf2"); + if (compiler_rt.want_ppc_abi) { + symbol(&__trunctfhf2, "__trunckfhf2"); + } } pub fn __trunctfhf2(a: f128) callconv(.c) compiler_rt.F16T(f128) { -- 2.54.0