| ... | ... | @@ -1973,25 +1973,6 @@ pub fn dependencyFromBuildZig( |
| 1973 | 1973 | debug.panic("'{}' is not a build.zig struct of a dependecy in '{s}'", .{ build_zig, full_path }); |
| 1974 | 1974 | } |
| 1975 | 1975 | |
| 1976 | | pub 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 | | |
| 1995 | 1976 | fn userValuesAreSame(lhs: UserValue, rhs: UserValue) bool { |
| 1996 | 1977 | switch (lhs) { |
| 1997 | 1978 | .flag => {}, |