From 86350bff3c95ae8840eb6eb8f0d975b633c86d5d Mon Sep 17 00:00:00 2001 From: techatrix <19954306+Techatrix@users.noreply.github.com> Date: Fri, 28 Jul 2023 02:36:36 +0200 Subject: [PATCH] allow forward slash in zig directory path --- src/configuration.zig | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/configuration.zig b/src/configuration.zig index e81f4e588..b46883bcf 100644 --- a/src/configuration.zig +++ b/src/configuration.zig @@ -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);