pub fn addNamedWriteFiles(b: *Build, name: []const u8) *Step.WriteFile b: *Buildname: []const u8863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878pub fn addNamedWriteFiles(b: *Build, name: []const u8) *Step.WriteFile {
const graph = b.graph;
const wf = Step.WriteFile.create(b);
const gop = b.named_writefiles.getOrPutValue(
graph.arena,
graph.dupeString(name),
wf,
) catch @panic("OOM");
if (gop.found_existing) {
panic(
"A WriteFile step with the name {q} has already been added to the package. Consider creating a private WriteFile step with std.Build.addWriteFiles",
.{name},
);
}
return wf;
}