Hi everyone,
I'm trying to create simple build.zig with a custom step. So far my code is segfaulting. Anyone got a clue how what's going on? ()
`const std = @import("std");
const Build = std.Build;
const Step = Build.Step;
fn greet(_: *Step, _: *std.Progress.Node) !void {
std.debug.print("Hello!\n", .{});
}
pub fn build(b: *Build) void {
var clean_step = Step.init(.{
.id = .custom,
.name = "greet",
.owner = b,
.makeFn = greet,
});
b.step("greet", "print 'Hello!'").dependOn(&clean_step);
}`