authorgravatar for carl@astholm.seCarl Åstholm <carl@astholm.se> 2024-02-17 17:50:25+01:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-04-07 16:06:19-07:00
logef90d3af54908f2c943e2bd2b1535e2b56a8046a
tree71a7719e910188292c1ade20dcbbc840c0403f73
parent5d5e89aa8d5a454bce2c93555d3bc7c7ae1aa162

Remove `std.Build.anonymousDependency`


1 files changed, 0 insertions(+), 19 deletions(-)

lib/std/Build.zig-19
......@@ -1973,25 +1973,6 @@ pub fn dependencyFromBuildZig(
19731973 debug.panic("'{}' is not a build.zig struct of a dependecy in '{s}'", .{ build_zig, full_path });
19741974}
19751975
1976pub fn anonymousDependency(
1977 b: *Build,
1978 /// The path to the directory containing the dependency's build.zig file,
1979 /// relative to the current package's build.zig.
1980 relative_build_root: []const u8,
1981 /// A direct `@import` of the build.zig of the dependency.
1982 comptime build_zig: type,
1983 args: anytype,
1984) *Dependency {
1985 const arena = b.allocator;
1986 const build_root = b.build_root.join(arena, &.{relative_build_root}) catch @panic("OOM");
1987 const name = arena.dupe(u8, relative_build_root) catch @panic("OOM");
1988 for (name) |*byte| switch (byte.*) {
1989 '/', '\\' => byte.* = '.',
1990 else => continue,
1991 };
1992 return dependencyInner(b, name, build_root, build_zig, "anonymous", &.{}, args);
1993}
1994
19951976fn userValuesAreSame(lhs: UserValue, rhs: UserValue) bool {
19961977 switch (lhs) {
19971978 .flag => {},