Skip to content

Commit

Permalink
allow forward slash in zig directory path (#1356)
Browse files Browse the repository at this point in the history
  • Loading branch information
Techatrix authored Jul 28, 2023
1 parent c88f9e0 commit ab99306
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/configuration.zig
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,6 @@ pub fn findZig(allocator: std.mem.Allocator) !?[]const u8 {

var it = std.mem.tokenize(u8, env_path, &[_]u8{std.fs.path.delimiter});
while (it.next()) |path| {
if (builtin.os.tag == .windows) {
if (std.mem.indexOfScalar(u8, path, '/') != null) continue;
}
const full_path = try std.fs.path.join(allocator, &[_][]const u8{ path, zig_exe });
defer allocator.free(full_path);

Expand Down

0 comments on commit ab99306

Please sign in to comment.