| ... | ... | @@ -1959,6 +1959,8 @@ pub fn lazyDependency(b: *Build, name: []const u8, args: anytype) ?*Dependency { |
| 1959 | 1959 | /// * `dependencyStep` |
| 1960 | 1960 | pub fn declareDependency(b: *Build, name: []const u8) void { |
| 1961 | 1961 | const pkg_hash = findPkgHashOrFatal(b, name); |
| 1962 | const entry = package_map.get(pkg_hash).?; |
| 1963 | if (entry.available) return; |
| 1962 | 1964 | markNeededLazyDep(b, pkg_hash); |
| 1963 | 1965 | } |
| 1964 | 1966 | |
| ... | ... | @@ -1972,6 +1974,8 @@ pub fn declareDependency(b: *Build, name: []const u8) void { |
| 1972 | 1974 | pub fn declareDependencyStep(b: *Build, s: *Step, name: []const u8) void { |
| 1973 | 1975 | const graph = b.graph; |
| 1974 | 1976 | const pkg_hash = findPkgHashOrFatal(b, name); |
| 1977 | const entry = package_map.get(pkg_hash).?; |
| 1978 | if (entry.available) return; |
| 1975 | 1979 | const interned_hash = graph.wip_configuration.addString(pkg_hash) catch @panic("OOM"); |
| 1976 | 1980 | s.unlazy_deps.put(graph.arena, interned_hash, {}) catch @panic("OOM"); |
| 1977 | 1981 | } |