authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-06-14 16:36:07-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-06-14 16:36:07-04:00
logcdf1e366f9c36af111cf41b001a58635d94a7714
tree94e9a8f3b0b51e0b51e7b2f443623d7ebf2e1531
parent6943cefebf94631ff02d6e28436c07f4030924c6

fix build on windows, broken by previous commit


1 files changed, 1 insertions(+), 1 deletions(-)

std/os/index.zig+1-1
...@@ -1971,7 +1971,7 @@ pub fn selfExeDirPath(allocator: *mem.Allocator) ![]u8 {...@@ -1971,7 +1971,7 @@ pub fn selfExeDirPath(allocator: *mem.Allocator) ![]u8 {
1971 Os.windows, Os.macosx, Os.ios => {1971 Os.windows, Os.macosx, Os.ios => {
1972 const self_exe_path = try selfExePath(allocator);1972 const self_exe_path = try selfExePath(allocator);
1973 errdefer allocator.free(self_exe_path);1973 errdefer allocator.free(self_exe_path);
1974 const dirname = os.path.dirname(self_exe_path);1974 const dirname = os.path.dirname(self_exe_path) orelse ".";
1975 return allocator.shrink(u8, self_exe_path, dirname.len);1975 return allocator.shrink(u8, self_exe_path, dirname.len);
1976 },1976 },
1977 else => @compileError("unimplemented: std.os.selfExeDirPath for " ++ @tagName(builtin.os)),1977 else => @compileError("unimplemented: std.os.selfExeDirPath for " ++ @tagName(builtin.os)),