mirror of
https://github.com/ziglang/zig.git
synced 2025-12-16 03:03:09 +00:00
std.debug: fix SelfInfo default for freestanding ELF targets
This commit is contained in:
parent
6c760d76b9
commit
98f0bf9b67
@ -63,7 +63,10 @@ pub const SelfInfo = if (@hasDecl(root, "debug") and @hasDecl(root.debug, "SelfI
|
|||||||
root.debug.SelfInfo
|
root.debug.SelfInfo
|
||||||
else switch (std.Target.ObjectFormat.default(native_os, native_arch)) {
|
else switch (std.Target.ObjectFormat.default(native_os, native_arch)) {
|
||||||
.coff => if (native_os == .windows) @import("debug/SelfInfo/Windows.zig") else void,
|
.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"),
|
.macho => @import("debug/SelfInfo/MachO.zig"),
|
||||||
.goff, .plan9, .spirv, .wasm, .xcoff => void,
|
.goff, .plan9, .spirv, .wasm, .xcoff => void,
|
||||||
.c, .hex, .raw => unreachable,
|
.c, .hex, .raw => unreachable,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user