commit 60958d135f74662e2c7d4a7f80c582a647fa07b6 (tree)
parent 289ae45c1b58e952867c4fa1e246d0ef7bc2ff64
Author: Andrew Kelley <andrew@ziglang.org>
Date: Tue, 2 Jan 2024 18:22:11 -0700
std.Build.Step.Compile: fix passing wrong Builder to getPath
This resulted in an error building a transitive module dependency.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/std/Build/Step/Compile.zig b/lib/std/Build/Step/Compile.zig
@@ -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 });
}
}