aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-03-04 00:00:42 -0500
committerAndrew Kelley <andrew@ziglang.org>2020-03-04 00:00:42 -0500
commitcd33c5bfe8e1901bba625d5048029de38e703dd6 (patch)
tree04a8ffc31c96c516df69f88b501f30d8b852c189 /lib/std
parent8aaab75af05c6066d8f952259d0d540f92c4772e (diff)
downloadzig-cd33c5bfe8e1901bba625d5048029de38e703dd6.tar.gz
zig-cd33c5bfe8e1901bba625d5048029de38e703dd6.zip
zig build: update InstallRawStep to new std.fs API
closes #4622
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/build/emit_raw.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/std/build/emit_raw.zig b/lib/std/build/emit_raw.zig
index 54ceae3263..44e0227b6e 100644
--- a/lib/std/build/emit_raw.zig
+++ b/lib/std/build/emit_raw.zig
@@ -213,11 +213,11 @@ pub const InstallRawStep = struct {
builder: *Builder,
artifact: *LibExeObjStep,
dest_dir: InstallDir,
- dest_filename: [] const u8,
+ dest_filename: []const u8,
const Self = @This();
- pub fn create(builder: *Builder, artifact: *LibExeObjStep, dest_filename: [] const u8) *Self {
+ pub fn create(builder: *Builder, artifact: *LibExeObjStep, dest_filename: []const u8) *Self {
const self = builder.allocator.create(Self) catch unreachable;
self.* = Self{
.step = Step.init(builder.fmt("install raw binary {}", .{artifact.step.name}), builder.allocator, make),
@@ -249,7 +249,7 @@ pub const InstallRawStep = struct {
const full_src_path = self.artifact.getOutputPath();
const full_dest_path = builder.getInstallPath(self.dest_dir, self.dest_filename);
- fs.makePath(builder.allocator, builder.getInstallPath(self.dest_dir, "")) catch unreachable;
+ fs.cwd().makePath(builder.getInstallPath(self.dest_dir, "")) catch unreachable;
try emit_raw(builder.allocator, full_src_path, full_dest_path);
}
-}; \ No newline at end of file
+};