stage2: correctly work out dirname for ar

This commit is contained in:
Jakub Konka 2022-06-09 22:39:28 +02:00
parent fcfeafe99a
commit 62023c60b4

View File

@ -797,9 +797,8 @@ pub const File = struct {
} else { } else {
try base.flushModule(comp, prog_node); try base.flushModule(comp, prog_node);
} }
break :blk try fs.path.join(arena, &.{ const dirname = fs.path.dirname(full_out_path_z) orelse ".";
fs.path.dirname(full_out_path_z).?, base.intermediary_basename.?, break :blk try fs.path.join(arena, &.{ dirname, base.intermediary_basename.? });
});
} else null; } else null;
log.debug("module_obj_path={s}", .{if (module_obj_path) |s| s else "(null)"}); log.debug("module_obj_path={s}", .{if (module_obj_path) |s| s else "(null)"});