Merge pull request #1 from Rageoholic/patch-1

Solve a sharing violation on windows
This commit is contained in:
Robin Voetter
2020-07-21 15:22:04 +02:00
committed by GitHub

View File

@@ -53,6 +53,7 @@ pub const GenerateStep = struct {
const dir = path.dirname(self.full_out_path).?;
try cwd.makePath(dir);
const output_file = cwd.createFile(self.full_out_path, .{}) catch unreachable;
defer output_file.close();
_ = try std.zig.render(self.builder.allocator, output_file.outStream(), tree);
}
};