Commit 5f7780c533

Alex Rønne Petersen <alex@alexrp.com>
2025-06-16 07:25:50
compiler-rt: Export _fltused for UEFI.
Closes #24148.
1 parent 1ca213d
Changed files (1)
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 });
     }
 }