aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Dusan <michael.dusan@gmail.com>2020-03-27 18:59:32 -0400
committerAndrew Kelley <andrew@ziglang.org>2020-03-27 21:28:52 -0400
commit33819ecfbcde6a96262c4ec5cb38e3228ead83c7 (patch)
treeaea7c9a9327d0d294118d65854ce3b050cdf8d61
parent0d7bd9f3ced8140866eea0de4bee040e265b3afd (diff)
downloadzig-33819ecfbcde6a96262c4ec5cb38e3228ead83c7.tar.gz
zig-33819ecfbcde6a96262c4ec5cb38e3228ead83c7.zip
windows: don't hard-code forward-slash paths
`zig targets` -> unable to list targets: BadPathName
-rw-r--r--src-self-hosted/print_targets.zig2
1 files changed, 1 insertions, 1 deletions
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);