mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 14:25:16 +00:00
debug: Accept relative paths in mapWholeFile
This commit is contained in:
parent
27344464ed
commit
336ed03f0f
@ -1049,7 +1049,7 @@ const MachoSymbol = struct {
|
||||
|
||||
fn mapWholeFile(path: []const u8) ![]align(mem.page_size) const u8 {
|
||||
noasync {
|
||||
const file = try fs.openFileAbsolute(path, .{ .always_blocking = true });
|
||||
const file = try fs.cwd().openFile(path, .{ .always_blocking = true });
|
||||
defer file.close();
|
||||
|
||||
const file_len = try math.cast(usize, try file.getEndPos());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user