mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
llvm: fix debug info when running tests
This commit is contained in:
parent
f03829a2da
commit
ebce190321
1 changed files with 1 additions and 1 deletions
|
|
@ -865,7 +865,7 @@ pub const Object = struct {
|
||||||
// a terrible tragedy.
|
// a terrible tragedy.
|
||||||
const compile_unit_dir = blk: {
|
const compile_unit_dir = blk: {
|
||||||
if (comp.module) |zcu| m: {
|
if (comp.module) |zcu| m: {
|
||||||
const d = try zcu.root_mod.root.joinString(arena, "");
|
const d = try zcu.main_mod.root.joinString(arena, "");
|
||||||
if (d.len == 0) break :m;
|
if (d.len == 0) break :m;
|
||||||
if (std.fs.path.isAbsolute(d)) break :blk d;
|
if (std.fs.path.isAbsolute(d)) break :blk d;
|
||||||
break :blk std.fs.realpathAlloc(arena, d) catch break :blk d;
|
break :blk std.fs.realpathAlloc(arena, d) catch break :blk d;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue