fix build on windows, broken by previous commit
This commit is contained in:
parent
6943cefebf
commit
cdf1e366f9
@ -1971,7 +1971,7 @@ pub fn selfExeDirPath(allocator: *mem.Allocator) ![]u8 {
|
|||||||
Os.windows, Os.macosx, Os.ios => {
|
Os.windows, Os.macosx, Os.ios => {
|
||||||
const self_exe_path = try selfExePath(allocator);
|
const self_exe_path = try selfExePath(allocator);
|
||||||
errdefer allocator.free(self_exe_path);
|
errdefer allocator.free(self_exe_path);
|
||||||
const dirname = os.path.dirname(self_exe_path);
|
const dirname = os.path.dirname(self_exe_path) orelse ".";
|
||||||
return allocator.shrink(u8, self_exe_path, dirname.len);
|
return allocator.shrink(u8, self_exe_path, dirname.len);
|
||||||
},
|
},
|
||||||
else => @compileError("unimplemented: std.os.selfExeDirPath for " ++ @tagName(builtin.os)),
|
else => @compileError("unimplemented: std.os.selfExeDirPath for " ++ @tagName(builtin.os)),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user