forked from mirror/vulkan-zig
Merge pull request #126 from igaryhe/fix-fieldparentptr
Fix broken @fieldParentPtr
This commit is contained in:
@@ -168,7 +168,7 @@ pub const ShaderCompileStep = struct {
|
|||||||
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;
|
||||||
const self = @fieldParentPtr(ShaderCompileStep, "step", step);
|
const self: *ShaderCompileStep = @fieldParentPtr("step", step);
|
||||||
const cwd = std.fs.cwd();
|
const cwd = std.fs.cwd();
|
||||||
|
|
||||||
var cmd = std.ArrayList([]const u8).init(b.allocator);
|
var cmd = std.ArrayList([]const u8).init(b.allocator);
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ pub const GenerateStep = struct {
|
|||||||
_ = progress;
|
_ = progress;
|
||||||
|
|
||||||
const b = step.owner;
|
const b = step.owner;
|
||||||
const self = @fieldParentPtr(GenerateStep, "step", step);
|
const self: *GenerateStep = @fieldParentPtr("step", step);
|
||||||
const cwd = std.fs.cwd();
|
const cwd = std.fs.cwd();
|
||||||
|
|
||||||
var man = b.graph.cache.obtain();
|
var man = b.graph.cache.obtain();
|
||||||
|
|||||||
Reference in New Issue
Block a user