Fix build on latest nightly zig

This commit is contained in:
iz 2022-05-01 19:19:37 -05:00
parent de4cf20383
commit 43ab394592

View file

@ -624,8 +624,7 @@ const ZiglingStep = struct {
const argv = [_][]const u8{exe_file};
const child = std.ChildProcess.init(&argv, self.builder.allocator) catch unreachable;
defer child.deinit();
var child = std.ChildProcess.init(&argv, self.builder.allocator);
child.cwd = cwd;
child.env_map = self.builder.env_map;