diff --git a/test/src/check-stack-trace.zig b/test/src/check-stack-trace.zig index fccbbe36090fc77afdee5fd1b3a64df2b320e8e3..43800086afd324eb99c6c6dc03e1ff8d7ac94282 100644 --- a/test/src/check-stack-trace.zig +++ b/test/src/check-stack-trace.zig @@ -65,7 +65,7 @@ pub fn main() !void { // This actually violates the DWARF specification (DWARF5 ยง 3.1.1, lines 24-27). // The self-hosted backend uses the root Zig source file of the module (in compilance with the spec). if (std.mem.eql(u8, file_name, "test") or - std.mem.eql(u8, file_name, "test.exe.obj") or + std.mem.eql(u8, file_name, "test_zcu.obj") or std.mem.endsWith(u8, file_name, ".zig")) { try buf.appendSlice("[main_file]");