forked from mirror/vulkan-zig
update to zig 0.13.0
This commit is contained in:
@@ -63,14 +63,14 @@ pub const GenerateStep = struct {
|
|||||||
|
|
||||||
/// Returns the file source for the generated bindings.
|
/// Returns the file source for the generated bindings.
|
||||||
pub fn getSource(self: *GenerateStep) Build.LazyPath {
|
pub fn getSource(self: *GenerateStep) Build.LazyPath {
|
||||||
return .{ .generated = &self.generated_file };
|
return .{ .generated = .{ .file = &self.generated_file } };
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Internal build function. This reads `vk.xml`, and passes it to `generate`, which then generates
|
/// Internal build function. This reads `vk.xml`, and passes it to `generate`, which then generates
|
||||||
/// the final bindings. The resulting generated bindings are not formatted, which is why an ArrayList
|
/// the final bindings. The resulting generated bindings are not formatted, which is why an ArrayList
|
||||||
/// writer is passed instead of a file writer. This is then formatted into standard formatting
|
/// writer is passed instead of a file writer. This is then formatted into standard formatting
|
||||||
/// by parsing it and rendering with `std.zig.parse` and `std.zig.render` respectively.
|
/// by parsing it and rendering with `std.zig.parse` and `std.zig.render` respectively.
|
||||||
fn make(step: *Build.Step, progress: *std.Progress.Node) !void {
|
fn make(step: *Build.Step, progress: std.Progress.Node) !void {
|
||||||
_ = progress;
|
_ = progress;
|
||||||
|
|
||||||
const b = step.owner;
|
const b = step.owner;
|
||||||
@@ -195,7 +195,7 @@ pub const GenerateStep = struct {
|
|||||||
return err;
|
return err;
|
||||||
};
|
};
|
||||||
|
|
||||||
try cwd.writeFile(output_file_path, formatted);
|
try cwd.writeFile(.{ .sub_path = output_file_path, .data = formatted });
|
||||||
self.generated_file.path = output_file_path;
|
self.generated_file.path = output_file_path;
|
||||||
try step.writeManifest(&man);
|
try step.writeManifest(&man);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user