Merge pull request #126 from igaryhe/fix-fieldparentptr

Fix broken @fieldParentPtr
This commit is contained in:
Robin Voetter
2024-04-01 17:03:38 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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();