Fix std.Build.findProgram

This commit is contained in:
Krzysztof Wolicki
2024-01-03 21:53:36 +01:00
committed by Andrew Kelley
parent 2ac315c245
commit ecd520f661

View File

@@ -1551,7 +1551,7 @@ pub fn fmt(self: *Build, comptime format: []const u8, args: anytype) []u8 {
pub fn findProgram(self: *Build, names: []const []const u8, paths: []const []const u8) ![]const u8 {
// TODO report error for ambiguous situations
const exe_extension = @as(Target.Query, .{}).exeFileExt();
const exe_extension = self.host.result.exeFileExt();
for (self.search_prefixes.items) |search_prefix| {
for (names) |name| {
if (fs.path.isAbsolute(name)) {