Source
pub fn create(
owner: *std.Build,
source: std.Build.LazyPath,
options: Options,
) *CheckFile {
const check_file = owner.allocator.create(CheckFile) catch @panic("OOM");
check_file.* = .{
.step = Step.init(.{
.id = base_id,
.name = "CheckFile",
.owner = owner,
.makeFn = make,
}),
.source = source.dupe(owner),
.expected_matches = owner.dupeStrings(options.expected_matches),
.expected_exact = options.expected_exact,
};
check_file.source.addStepDependencies(&check_file.step);
return check_file;
}