From 33819ecfbcde6a96262c4ec5cb38e3228ead83c7 Mon Sep 17 00:00:00 2001 From: Michael Dusan Date: Fri, 27 Mar 2020 18:59:32 -0400 Subject: [PATCH] windows: don't hard-code forward-slash paths `zig targets` -> unable to list targets: BadPathName --- src-self-hosted/print_targets.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-self-hosted/print_targets.zig b/src-self-hosted/print_targets.zig index 997cfcfddc..f84a4a2cbc 100644 --- a/src-self-hosted/print_targets.zig +++ b/src-self-hosted/print_targets.zig @@ -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);