| ... | @@ -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"); |
| 62 | pub const SelfInfo = if (@hasDecl(root, "debug") and @hasDecl(root.debug, "SelfInfo")) | 62 | pub const SelfInfo = if (@hasDecl(root, "debug") and @hasDecl(root.debug, "SelfInfo")) |
| 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 => @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, |