Function create [src]

Prototype

pub fn create( owner: *std.Build, source: std.Build.LazyPath, options: Options, ) *CheckFile

Parameters

owner: *std.Buildsource: std.Build.LazyPathoptions: Options

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; }