From 5f7780c533411c6272fb3ce3875b7843cc2287e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Mon, 16 Jun 2025 07:25:50 +0200 Subject: [PATCH] compiler-rt: Export _fltused for UEFI. Closes #24148. --- lib/compiler_rt.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/compiler_rt.zig b/lib/compiler_rt.zig index e17dea2b4c..46db464fd9 100644 --- a/lib/compiler_rt.zig +++ b/lib/compiler_rt.zig @@ -265,7 +265,8 @@ comptime { _ = @import("compiler_rt/ssp.zig"); } - if (!builtin.link_libc and builtin.os.tag == .windows and (builtin.abi == .none or builtin.abi == .msvc)) { + // Temporarily used for uefi until https://github.com/ziglang/zig/issues/21630 is addressed. + if (!builtin.link_libc and (builtin.os.tag == .windows or builtin.os.tag == .uefi) and (builtin.abi == .none or builtin.abi == .msvc)) { @export(&_fltused, .{ .name = "_fltused", .linkage = common.linkage, .visibility = common.visibility }); } }