| ... | @@ -63,7 +63,10 @@ pub const SelfInfo = if (@hasDecl(root, "debug") and @hasDecl(root.debug, "SelfI | ... | @@ -63,7 +63,10 @@ pub const SelfInfo = if (@hasDecl(root, "debug") and @hasDecl(root.debug, "SelfI |
| 63 | root.debug.SelfInfo | 63 | root.debug.SelfInfo |
| 64 | else switch (std.Target.ObjectFormat.default(native_os, native_arch)) { | 64 | else switch (std.Target.ObjectFormat.default(native_os, native_arch)) { |
| 65 | .coff => if (native_os == .windows) @import("debug/SelfInfo/Windows.zig") else void, | 65 | .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 | }, |
| 67 | .macho => @import("debug/SelfInfo/MachO.zig"), | 70 | .macho => @import("debug/SelfInfo/MachO.zig"), |
| 68 | .goff, .plan9, .spirv, .wasm, .xcoff => void, | 71 | .goff, .plan9, .spirv, .wasm, .xcoff => void, |
| 69 | .c, .hex, .raw => unreachable, | 72 | .c, .hex, .raw => unreachable, |