use fs.resolve on path resolution

This commit is contained in:
NotNite 2021-03-13 23:06:41 -05:00
parent 6c6f716bca
commit fdace9abfe
No known key found for this signature in database
GPG Key ID: BD91A5402CCEB08A

View File

@ -28,8 +28,10 @@ pub fn config(step: *std.build.Step) anyerror!void {
var it = std.mem.tokenize(env_path, &[_]u8{std.fs.path.delimiter});
while (it.next()) |path| {
const resolved_path = try std.fs.path.resolve(allocator, &[_][]const u8{path});
defer allocator.free(resolved_path);
const full_path = try std.fs.path.join(allocator, &[_][]const u8{
path,
resolved_path,
zig_exe,
});
defer allocator.free(full_path);