mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
windows: don't hard-code forward-slash paths
`zig targets` -> unable to list targets: BadPathName
This commit is contained in:
parent
0d7bd9f3ce
commit
33819ecfbc
@ -75,7 +75,7 @@ pub fn cmdTargets(
|
|||||||
var dir = try std.fs.cwd().openDir(zig_lib_dir, .{});
|
var dir = try std.fs.cwd().openDir(zig_lib_dir, .{});
|
||||||
defer dir.close();
|
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);
|
defer allocator.free(vers_txt);
|
||||||
|
|
||||||
var list = std.ArrayList(std.builtin.Version).init(allocator);
|
var list = std.ArrayList(std.builtin.Version).init(allocator);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user