From fdace9abfe65789ad68b0d11163b205f8564d6cf Mon Sep 17 00:00:00 2001 From: NotNite Date: Sat, 13 Mar 2021 23:06:41 -0500 Subject: [PATCH] use fs.resolve on path resolution --- build.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.zig b/build.zig index c9be825..51a1014 100644 --- a/build.zig +++ b/build.zig @@ -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);