Skip to content

Commit 5f7780c

Browse files
committed
compiler-rt: Export _fltused for UEFI.
Closes #24148.
1 parent 1ca213d commit 5f7780c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/compiler_rt.zig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,8 @@ comptime {
265265
_ = @import("compiler_rt/ssp.zig");
266266
}
267267

268-
if (!builtin.link_libc and builtin.os.tag == .windows and (builtin.abi == .none or builtin.abi == .msvc)) {
268+
// Temporarily used for uefi until https://github.com/ziglang/zig/issues/21630 is addressed.
269+
if (!builtin.link_libc and (builtin.os.tag == .windows or builtin.os.tag == .uefi) and (builtin.abi == .none or builtin.abi == .msvc)) {
269270
@export(&_fltused, .{ .name = "_fltused", .linkage = common.linkage, .visibility = common.visibility });
270271
}
271272
}

0 commit comments

Comments
 (0)