diff options
Diffstat (limited to 'lib/std/build.zig')
| -rw-r--r-- | lib/std/build.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/std/build.zig b/lib/std/build.zig index f535b022af..2b9a8ddcd6 100644 --- a/lib/std/build.zig +++ b/lib/std/build.zig @@ -1059,7 +1059,10 @@ pub const Builder = struct { }; test "builder.findProgram compiles" { + // TODO: uncomment and fix the leak + // const builder = try Builder.create(std.testing.allocator, "zig", "zig-cache", "zig-cache"); const builder = try Builder.create(std.heap.page_allocator, "zig", "zig-cache", "zig-cache"); + defer builder.destroy(); _ = builder.findProgram(&[_][]const u8{}, &[_][]const u8{}) catch null; } |
