mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 07:32:44 +00:00
std.Build.Step.Compile: fix passing wrong Builder to getPath
This resulted in an error building a transitive module dependency.
This commit is contained in:
parent
289ae45c1b
commit
60958d135f
@ -1218,7 +1218,7 @@ fn make(step: *Step, prog_node: *std.Progress.Node) !void {
|
||||
// In such case, there will be only one module, so we can leave
|
||||
// off the naming here.
|
||||
if (module.root_source_file) |lp| {
|
||||
const src = lp.getPath2(b, step);
|
||||
const src = lp.getPath2(module.owner, step);
|
||||
try zig_args.appendSlice(&.{ "--mod", module_cli_name, src });
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user