std.Build: further enhance debug message for bad getPath()

Now it also shows the step stack trace of the step whose make function
is being run.
This commit is contained in:
Andrew Kelley
2023-02-14 13:12:47 -07:00
parent 02381c0372
commit 8d38472293
2 changed files with 42 additions and 8 deletions

View File

@@ -38,7 +38,7 @@ pub fn init(
fn make(step: *Step) !void {
const self = @fieldParentPtr(InstallFileStep, "step", step);
const src_builder = self.override_source_builder orelse self.builder;
const full_src_path = self.source.getPath(src_builder);
const full_src_path = self.source.getPath2(src_builder, step);
const full_dest_path = self.builder.getInstallPath(self.dir, self.dest_rel_path);
try self.builder.updateFile(full_src_path, full_dest_path);
}