authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-03-04 00:00:42-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-03-04 00:00:42-05:00
logcd33c5bfe8e1901bba625d5048029de38e703dd6
tree04a8ffc31c96c516df69f88b501f30d8b852c189
parent8aaab75af05c6066d8f952259d0d540f92c4772e
signaturelock-open Commit is signed but in an unrecognized format.

zig build: update InstallRawStep to new std.fs API

closes #4622

1 files changed, 4 insertions(+), 4 deletions(-)

lib/std/build/emit_raw.zig+4-4
......@@ -213,11 +213,11 @@ pub const InstallRawStep = struct {
213213 builder: *Builder,
214214 artifact: *LibExeObjStep,
215215 dest_dir: InstallDir,
216 dest_filename: [] const u8,
216 dest_filename: []const u8,
217217
218218 const Self = @This();
219219
220 pub fn create(builder: *Builder, artifact: *LibExeObjStep, dest_filename: [] const u8) *Self {
220 pub fn create(builder: *Builder, artifact: *LibExeObjStep, dest_filename: []const u8) *Self {
221221 const self = builder.allocator.create(Self) catch unreachable;
222222 self.* = Self{
223223 .step = Step.init(builder.fmt("install raw binary {}", .{artifact.step.name}), builder.allocator, make),
......@@ -249,7 +249,7 @@ pub const InstallRawStep = struct {
249249 const full_src_path = self.artifact.getOutputPath();
250250 const full_dest_path = builder.getInstallPath(self.dest_dir, self.dest_filename);
251251
252 fs.makePath(builder.allocator, builder.getInstallPath(self.dest_dir, "")) catch unreachable;
252 fs.cwd().makePath(builder.getInstallPath(self.dest_dir, "")) catch unreachable;
253253 try emit_raw(builder.allocator, full_src_path, full_dest_path);
254254 }
255};
\ No newline at end of file
255};