aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build/Step/ObjCopy.zig
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std/Build/Step/ObjCopy.zig')
-rw-r--r--lib/std/Build/Step/ObjCopy.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/std/Build/Step/ObjCopy.zig b/lib/std/Build/Step/ObjCopy.zig
index 4aa1c0a9dc..b81f59b9a1 100644
--- a/lib/std/Build/Step/ObjCopy.zig
+++ b/lib/std/Build/Step/ObjCopy.zig
@@ -143,6 +143,7 @@ pub fn getOutputSeparatedDebug(objcopy: *const ObjCopy) ?std.Build.LazyPath {
fn make(step: *Step, options: Step.MakeOptions) !void {
const prog_node = options.progress_node;
const b = step.owner;
+ const io = b.graph.io;
const objcopy: *ObjCopy = @fieldParentPtr("step", step);
try step.singleUnchangingWatchInput(objcopy.input_file);
@@ -176,7 +177,7 @@ fn make(step: *Step, options: Step.MakeOptions) !void {
const cache_path = "o" ++ fs.path.sep_str ++ digest;
const full_dest_path = try b.cache_root.join(b.allocator, &.{ cache_path, objcopy.basename });
const full_dest_path_debug = try b.cache_root.join(b.allocator, &.{ cache_path, b.fmt("{s}.debug", .{objcopy.basename}) });
- b.cache_root.handle.makePath(cache_path) catch |err| {
+ b.cache_root.handle.makePath(io, cache_path) catch |err| {
return step.fail("unable to make path {s}: {s}", .{ cache_path, @errorName(err) });
};