| ... | ... | @@ -1858,7 +1858,7 @@ pub fn dependency(b: *Build, name: []const u8, args: anytype) *Dependency { |
| 1858 | 1858 | if (mem.eql(u8, decl.name, pkg_hash)) { |
| 1859 | 1859 | const pkg = @field(deps.packages, decl.name); |
| 1860 | 1860 | if (@hasDecl(pkg, "available")) { |
| 1861 | | @compileError("dependency is marked as lazy in build.zig.zon which means it must use the lazyDependency function instead"); |
| 1861 | std.debug.panic("dependency '{s}{s}' is marked as lazy in build.zig.zon which means it must use the lazyDependency function instead", .{ b.dep_prefix, name }); |
| 1862 | 1862 | } |
| 1863 | 1863 | return dependencyInner(b, name, pkg.build_root, if (@hasDecl(pkg, "build_zig")) pkg.build_zig else null, pkg.deps, args); |
| 1864 | 1864 | } |