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 {...@@ -1839,7 +1839,7 @@ fn tryFindProgram(b: *Build, full_path: []const u8) ?[]const u8 {
1839 while (it.next()) |ext| {1839 while (it.next()) |ext| {
1840 if (!supportedWindowsProgramExtension(ext)) continue;1840 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
1844 if (Io.Dir.cwd().access(io, extended_path, .{ .execute = true })) |_| {1844 if (Io.Dir.cwd().access(io, extended_path, .{ .execute = true })) |_| {
1845 return extended_path;1845 return extended_path;
...@@ -2707,4 +2707,5 @@ pub fn systemIntegrationOption(...@@ -2707,4 +2707,5 @@ pub fn systemIntegrationOption(
2707test {2707test {
2708 _ = Cache;2708 _ = Cache;
2709 _ = Step;2709 _ = Step;
2710 _ = &findProgram;
2710}2711}