authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-10-01 15:33:50+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-10-01 23:47:47+02:00
loge1fb662f600a7e134661d3c46d12e7ead83dd799
treec111d01fc6d9d8a9e6b23641d7c4cc597d9a5b15
parent59633e54a235ce8811cfb33d719595e1bd6f7334
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.debug: don't use SelfInfo.Windows for UEFI

It is, in fact, Windows-only.

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/debug.zig+1-1
...@@ -62,7 +62,7 @@ pub const cpu_context = @import("debug/cpu_context.zig");...@@ -62,7 +62,7 @@ pub const cpu_context = @import("debug/cpu_context.zig");
62pub const SelfInfo = if (@hasDecl(root, "debug") and @hasDecl(root.debug, "SelfInfo"))62pub const SelfInfo = if (@hasDecl(root, "debug") and @hasDecl(root.debug, "SelfInfo"))
63 root.debug.SelfInfo63 root.debug.SelfInfo
64else switch (std.Target.ObjectFormat.default(native_os, native_arch)) {64else switch (std.Target.ObjectFormat.default(native_os, native_arch)) {
65 .coff => @import("debug/SelfInfo/Windows.zig"),65 .coff => if (native_os == .windows) @import("debug/SelfInfo/Windows.zig") else void,
66 .elf => @import("debug/SelfInfo/Elf.zig"),66 .elf => @import("debug/SelfInfo/Elf.zig"),
67 .macho => @import("debug/SelfInfo/Darwin.zig"),67 .macho => @import("debug/SelfInfo/Darwin.zig"),
68 .goff, .plan9, .spirv, .wasm, .xcoff => void,68 .goff, .plan9, .spirv, .wasm, .xcoff => void,