| ... | @@ -1765,7 +1765,7 @@ fn tryFindProgram(b: *Build, full_path: []const u8) ?[]const u8 { | ... | @@ -1765,7 +1765,7 @@ fn tryFindProgram(b: *Build, full_path: []const u8) ?[]const u8 { |
| 1765 | const io = b.graph.io; | 1765 | const io = b.graph.io; |
| 1766 | const arena = b.allocator; | 1766 | const arena = b.allocator; |
| 1767 | | 1767 | |
| 1768 | if (Io.Dir.realPathFileAbsoluteAlloc(io, full_path, arena)) |p| { | 1768 | if (b.build_root.handle.realPathFileAlloc(io, full_path, arena)) |p| { |
| 1769 | return p; | 1769 | return p; |
| 1770 | } else |err| switch (err) { | 1770 | } else |err| switch (err) { |
| 1771 | error.OutOfMemory => @panic("OOM"), | 1771 | error.OutOfMemory => @panic("OOM"), |
| ... | @@ -1779,7 +1779,7 @@ fn tryFindProgram(b: *Build, full_path: []const u8) ?[]const u8 { | ... | @@ -1779,7 +1779,7 @@ fn tryFindProgram(b: *Build, full_path: []const u8) ?[]const u8 { |
| 1779 | while (it.next()) |ext| { | 1779 | while (it.next()) |ext| { |
| 1780 | if (!supportedWindowsProgramExtension(ext)) continue; | 1780 | if (!supportedWindowsProgramExtension(ext)) continue; |
| 1781 | | 1781 | |
| 1782 | return Io.Dir.realPathFileAbsoluteAlloc( | 1782 | return b.build_root.handle.realPathFileAlloc( |
| 1783 | io, | 1783 | io, |
| 1784 | b.fmt("{s}{s}", .{ full_path, ext }), | 1784 | b.fmt("{s}{s}", .{ full_path, ext }), |
| 1785 | arena, | 1785 | arena, |