mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 07:32:44 +00:00
stage2: correctly work out dirname for ar
This commit is contained in:
parent
fcfeafe99a
commit
62023c60b4
@ -797,9 +797,8 @@ pub const File = struct {
|
||||
} else {
|
||||
try base.flushModule(comp, prog_node);
|
||||
}
|
||||
break :blk try fs.path.join(arena, &.{
|
||||
fs.path.dirname(full_out_path_z).?, base.intermediary_basename.?,
|
||||
});
|
||||
const dirname = fs.path.dirname(full_out_path_z) orelse ".";
|
||||
break :blk try fs.path.join(arena, &.{ dirname, base.intermediary_basename.? });
|
||||
} else null;
|
||||
|
||||
log.debug("module_obj_path={s}", .{if (module_obj_path) |s| s else "(null)"});
|
||||
|
Loading…
Reference in New Issue
Block a user