diff --git a/generator/build_integration.zig b/generator/build_integration.zig index 13c3a1c..cc366a5 100644 --- a/generator/build_integration.zig +++ b/generator/build_integration.zig @@ -168,7 +168,7 @@ pub const ShaderCompileStep = struct { fn make(step: *Build.Step, progress: *std.Progress.Node) !void { _ = progress; const b = step.owner; - const self = @fieldParentPtr(ShaderCompileStep, "step", step); + const self: *ShaderCompileStep = @fieldParentPtr("step", step); const cwd = std.fs.cwd(); var cmd = std.ArrayList([]const u8).init(b.allocator); diff --git a/generator/vulkan/build_integration.zig b/generator/vulkan/build_integration.zig index 3b30098..7e578a2 100644 --- a/generator/vulkan/build_integration.zig +++ b/generator/vulkan/build_integration.zig @@ -74,7 +74,7 @@ pub const GenerateStep = struct { _ = progress; const b = step.owner; - const self = @fieldParentPtr(GenerateStep, "step", step); + const self: *GenerateStep = @fieldParentPtr("step", step); const cwd = std.fs.cwd(); var man = b.graph.cache.obtain();