Commit 336ed03f0f

LemonBoy <thatlemon@gmail.com>
2020-03-23 18:51:10
debug: Accept relative paths in mapWholeFile
1 parent 2734446
Changed files (1)
lib
lib/std/debug.zig
@@ -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());