Update to new build API

This commit is contained in:
Robin Voetter
2021-06-12 13:44:48 +02:00
parent 4b4ef38c93
commit 6f965fead0
3 changed files with 22 additions and 13 deletions

View File

@@ -30,7 +30,7 @@ pub const ShaderCompileStep = struct {
pub fn init(builder: *Builder, glslc_cmd: []const []const u8) *ShaderCompileStep {
const self = builder.allocator.create(ShaderCompileStep) catch unreachable;
self.* = .{
.step = Step.init(.Custom, "shader-compile", builder.allocator, make),
.step = Step.init(.custom, "shader-compile", builder.allocator, make),
.builder = builder,
.glslc_cmd = glslc_cmd,
.shaders = std.ArrayList(Shader).init(builder.allocator),