commit e1fb662f600a7e134661d3c46d12e7ead83dd799 (tree)
parent 59633e54a235ce8811cfb33d719595e1bd6f7334
Author: Alex Rønne Petersen <alex@alexrp.com>
Date: Wed, 1 Oct 2025 15:33:50 +0200
std.debug: don't use SelfInfo.Windows for UEFI
It is, in fact, Windows-only.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/std/debug.zig b/lib/std/debug.zig
@@ -62,7 +62,7 @@ pub const cpu_context = @import("debug/cpu_context.zig");
pub const SelfInfo = if (@hasDecl(root, "debug") and @hasDecl(root.debug, "SelfInfo"))
root.debug.SelfInfo
else switch (std.Target.ObjectFormat.default(native_os, native_arch)) {
- .coff => @import("debug/SelfInfo/Windows.zig"),
+ .coff => if (native_os == .windows) @import("debug/SelfInfo/Windows.zig") else void,
.elf => @import("debug/SelfInfo/Elf.zig"),
.macho => @import("debug/SelfInfo/Darwin.zig"),
.goff, .plan9, .spirv, .wasm, .xcoff => void,