| ... | ... | @@ -8,7 +8,6 @@ const fs = std.fs; |
| 8 | 8 | pub const base_id = .install_artifact; |
| 9 | 9 | |
| 10 | 10 | step: Step, |
| 11 | | dest_builder: *std.Build, |
| 12 | 11 | artifact: *CompileStep, |
| 13 | 12 | dest_dir: InstallDir, |
| 14 | 13 | pdb_dir: ?InstallDir, |
| ... | ... | @@ -28,7 +27,6 @@ pub fn create(owner: *std.Build, artifact: *CompileStep) *InstallArtifactStep { |
| 28 | 27 | .owner = owner, |
| 29 | 28 | .makeFn = make, |
| 30 | 29 | }), |
| 31 | | .dest_builder = owner, |
| 32 | 30 | .artifact = artifact, |
| 33 | 31 | .dest_dir = artifact.override_dest_dir orelse switch (artifact.kind) { |
| 34 | 32 | .obj => @panic("Cannot install a .obj build artifact."), |
| ... | ... | @@ -71,9 +69,9 @@ pub fn create(owner: *std.Build, artifact: *CompileStep) *InstallArtifactStep { |
| 71 | 69 | |
| 72 | 70 | fn make(step: *Step, prog_node: *std.Progress.Node) !void { |
| 73 | 71 | _ = prog_node; |
| 74 | | const src_builder = step.owner; |
| 75 | 72 | const self = @fieldParentPtr(InstallArtifactStep, "step", step); |
| 76 | | const dest_builder = self.dest_builder; |
| 73 | const src_builder = self.artifact.step.owner; |
| 74 | const dest_builder = step.owner; |
| 77 | 75 | |
| 78 | 76 | const dest_sub_path = if (self.dest_sub_path) |sub_path| sub_path else self.artifact.out_filename; |
| 79 | 77 | const full_dest_path = dest_builder.getInstallPath(self.dest_dir, dest_sub_path); |