authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-10-09 19:03:08+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-10-09 20:43:32+02:00
log98f0bf9b67abc0fc2f787df95c26c75dc6db3c88
treecefec9766d0586ec3ffe505b16f04456a188cc06
parent6c760d76b93680dc6eb4e2afc22b7d6bc286e3ed
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.debug: fix SelfInfo default for freestanding ELF targets


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

lib/std/debug.zig+4-1
......@@ -63,7 +63,10 @@ pub const SelfInfo = if (@hasDecl(root, "debug") and @hasDecl(root.debug, "SelfI
6363 root.debug.SelfInfo
6464else switch (std.Target.ObjectFormat.default(native_os, native_arch)) {
6565 .coff => if (native_os == .windows) @import("debug/SelfInfo/Windows.zig") else void,
66 .elf => @import("debug/SelfInfo/Elf.zig"),
66 .elf => switch (native_os) {
67 .freestanding, .other => void,
68 else => @import("debug/SelfInfo/Elf.zig"),
69 },
6770 .macho => @import("debug/SelfInfo/MachO.zig"),
6871 .goff, .plan9, .spirv, .wasm, .xcoff => void,
6972 .c, .hex, .raw => unreachable,