zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit ebce19032164949684aa53bfffdfb2b24fb36af4 (tree)
parent f03829a2da1699343de1e1980a43810dfcff201e
Author: Jacob Young <jacobly0@users.noreply.github.com>
Date:   Thu, 18 Apr 2024 23:40:06 -0400

llvm: fix debug info when running tests

Diffstat:
Msrc/codegen/llvm.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig @@ -865,7 +865,7 @@ pub const Object = struct { // a terrible tragedy. const compile_unit_dir = blk: { 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 (std.fs.path.isAbsolute(d)) break :blk d; break :blk std.fs.realpathAlloc(arena, d) catch break :blk d;