Skip to content

Commit

Permalink
std.Build.Step.Compile: fix passing wrong Builder to getPath
Browse files Browse the repository at this point in the history
This resulted in an error building a transitive module dependency.
  • Loading branch information
andrewrk committed Jan 3, 2024
1 parent 289ae45 commit 60958d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/std/Build/Step/Compile.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}
}
Expand Down

0 comments on commit 60958d1

Please sign in to comment.