| ... | @@ -1596,26 +1596,6 @@ pub fn runBuild(b: *Build, build_zig: anytype) anyerror!void { | ... | @@ -1596,26 +1596,6 @@ pub fn runBuild(b: *Build, build_zig: anytype) anyerror!void { |
| 1596 | } | 1596 | } |
| 1597 | } | 1597 | } |
| 1598 | | 1598 | |
| 1599 | test "builder.findProgram compiles" { | | |
| 1600 | if (builtin.os.tag == .wasi) return error.SkipZigTest; | | |
| 1601 | | | |
| 1602 | var arena = std.heap.ArenaAllocator.init(std.heap.page_allocator); | | |
| 1603 | defer arena.deinit(); | | |
| 1604 | | | |
| 1605 | const host = try NativeTargetInfo.detect(.{}); | | |
| 1606 | | | |
| 1607 | const builder = try Build.create( | | |
| 1608 | arena.allocator(), | | |
| 1609 | "zig", | | |
| 1610 | "zig-cache", | | |
| 1611 | "zig-cache", | | |
| 1612 | "zig-cache", | | |
| 1613 | host, | | |
| 1614 | ); | | |
| 1615 | defer builder.destroy(); | | |
| 1616 | _ = builder.findProgram(&[_][]const u8{}, &[_][]const u8{}) catch null; | | |
| 1617 | } | | |
| 1618 | | | |
| 1619 | pub const Module = struct { | 1599 | pub const Module = struct { |
| 1620 | builder: *Build, | 1600 | builder: *Build, |
| 1621 | /// This could either be a generated file, in which case the module | 1601 | /// This could either be a generated file, in which case the module |