authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-01-02 18:22:11-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-01-02 18:22:11-07:00
log60958d135f74662e2c7d4a7f80c582a647fa07b6
tree32f0bc9ea913d4dd5d9fc8880967f5b2fef71e5f
parent289ae45c1b58e952867c4fa1e246d0ef7bc2ff64

std.Build.Step.Compile: fix passing wrong Builder to getPath

This resulted in an error building a transitive module dependency.

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/Build/Step/Compile.zig+1-1
......@@ -1218,7 +1218,7 @@ fn make(step: *Step, prog_node: *std.Progress.Node) !void {
12181218 // In such case, there will be only one module, so we can leave
12191219 // off the naming here.
12201220 if (module.root_source_file) |lp| {
1221 const src = lp.getPath2(b, step);
1221 const src = lp.getPath2(module.owner, step);
12221222 try zig_args.appendSlice(&.{ "--mod", module_cli_name, src });
12231223 }
12241224 }