forked from mirror/vulkan-zig
Merge pull request #1 from Rageoholic/patch-1
Solve a sharing violation on windows
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user