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