mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-27 19:09:47 +03:00
std.debug: fix SelfInfo default for freestanding ELF targets
This commit is contained in:
+4
-1
@@ -63,7 +63,10 @@ pub const SelfInfo = if (@hasDecl(root, "debug") and @hasDecl(root.debug, "SelfI
|
||||
root.debug.SelfInfo
|
||||
else switch (std.Target.ObjectFormat.default(native_os, native_arch)) {
|
||||
.coff => if (native_os == .windows) @import("debug/SelfInfo/Windows.zig") else void,
|
||||
.elf => @import("debug/SelfInfo/Elf.zig"),
|
||||
.elf => switch (native_os) {
|
||||
.freestanding, .other => void,
|
||||
else => @import("debug/SelfInfo/Elf.zig"),
|
||||
},
|
||||
.macho => @import("debug/SelfInfo/MachO.zig"),
|
||||
.goff, .plan9, .spirv, .wasm, .xcoff => void,
|
||||
.c, .hex, .raw => unreachable,
|
||||
|
||||
Reference in New Issue
Block a user