authorgravatar for kjs@scheibo.comKirk Scheibelhut <kjs@scheibo.com> 2026-06-02 13:29:03-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-06-06 21:28:49-07:00
logaf27e8d06fe151cf689e3a6e33b660e3cd4ac8d0
tree2e3be8b57e303cb1ae447df2c6d4a18f83fcfe85
parent474017b43d861ebf80188cdd013a8027c464e2d6

add missing param to mem.concat call

also ensure findProgram actually gets analyzed

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

lib/std/Build.zig+2-1
......@@ -1839,7 +1839,7 @@ fn tryFindProgram(b: *Build, full_path: []const u8) ?[]const u8 {
18391839 while (it.next()) |ext| {
18401840 if (!supportedWindowsProgramExtension(ext)) continue;
18411841
1842 const extended_path = try mem.concat(arena, &.{ full_path, ext });
1842 const extended_path = try mem.concat(arena, u8, &.{ full_path, ext });
18431843
18441844 if (Io.Dir.cwd().access(io, extended_path, .{ .execute = true })) |_| {
18451845 return extended_path;
......@@ -2707,4 +2707,5 @@ pub fn systemIntegrationOption(
27072707test {
27082708 _ = Cache;
27092709 _ = Step;
2710 _ = &findProgram;
27102711}