pub fn addNamedLazyPath(b: *Build, name: []const u8, lp: LazyPath) void 880
881
882
883
884
885
886
887
888
889
890pub fn addNamedLazyPath(b: *Build, name: []const u8, lp: LazyPath) void {
const graph = b.graph;
const gop = b.named_lazy_paths.getOrPutValue(
graph.arena,
graph.dupeString(name),
lp.dupe(graph),
) catch @panic("OOM");
if (gop.found_existing) {
panic("A LazyPath with the name {q} has already been added to the package.", .{name});
}
}