| ... | @@ -213,11 +213,11 @@ pub const InstallRawStep = struct { | ... | @@ -213,11 +213,11 @@ pub const InstallRawStep = struct { |
| 213 | builder: *Builder, | 213 | builder: *Builder, |
| 214 | artifact: *LibExeObjStep, | 214 | artifact: *LibExeObjStep, |
| 215 | dest_dir: InstallDir, | 215 | dest_dir: InstallDir, |
| 216 | dest_filename: [] const u8, | 216 | dest_filename: []const u8, |
| 217 | | 217 | |
| 218 | const Self = @This(); | 218 | const Self = @This(); |
| 219 | | 219 | |
| 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 { |
| 221 | const self = builder.allocator.create(Self) catch unreachable; | 221 | const self = builder.allocator.create(Self) catch unreachable; |
| 222 | self.* = Self{ | 222 | self.* = Self{ |
| 223 | .step = Step.init(builder.fmt("install raw binary {}", .{artifact.step.name}), builder.allocator, make), | 223 | .step = Step.init(builder.fmt("install raw binary {}", .{artifact.step.name}), builder.allocator, make), |
| ... | @@ -249,7 +249,7 @@ pub const InstallRawStep = struct { | ... | @@ -249,7 +249,7 @@ pub const InstallRawStep = struct { |
| 249 | const full_src_path = self.artifact.getOutputPath(); | 249 | const full_src_path = self.artifact.getOutputPath(); |
| 250 | const full_dest_path = builder.getInstallPath(self.dest_dir, self.dest_filename); | 250 | const full_dest_path = builder.getInstallPath(self.dest_dir, self.dest_filename); |
| 251 | | 251 | |
| 252 | fs.makePath(builder.allocator, builder.getInstallPath(self.dest_dir, "")) catch unreachable; | 252 | fs.cwd().makePath(builder.getInstallPath(self.dest_dir, "")) catch unreachable; |
| 253 | try emit_raw(builder.allocator, full_src_path, full_dest_path); | 253 | try emit_raw(builder.allocator, full_src_path, full_dest_path); |
| 254 | } | 254 | } |
| 255 | }; | | |
| \ No newline at end of file |
| | 255 | }; |