windows: don't hard-code forward-slash paths

`zig targets` -> unable to list targets: BadPathName
This commit is contained in:
Michael Dusan 2020-03-27 18:59:32 -04:00 committed by Andrew Kelley
parent 0d7bd9f3ce
commit 33819ecfbc

View File

@ -75,7 +75,7 @@ pub fn cmdTargets(
var dir = try std.fs.cwd().openDir(zig_lib_dir, .{});
defer dir.close();
const vers_txt = try dir.readFileAlloc(allocator, "libc/glibc/vers.txt", 10 * 1024);
const vers_txt = try dir.readFileAlloc(allocator, "libc" ++ std.fs.path.sep_str ++ "glibc" ++ std.fs.path.sep_str ++ "vers.txt", 10 * 1024);
defer allocator.free(vers_txt);
var list = std.ArrayList(std.builtin.Version).init(allocator);