summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig6
1 files changed, 5 insertions, 1 deletions
diff --git a/build.zig b/build.zig
index d99f3985..7bd43795 100644
--- a/build.zig
+++ b/build.zig
@@ -250,7 +250,11 @@ pub fn build(b: *std.Build) void {
// `b.dependency` below would end the configure to fetch its own alone.
const ts = treeSitter(b, io, target, c_optimize, tree_sitter_grammars);
inline for (.{ "cloud9", "vaxis", "ghostty", "uucode", "zstbi", "mvzr", "zstd", "xitdb" }) |name| {
- if (!std.Build.package_map.get(@field(zon.dependencies, name).hash).?.available) _ = b.lazyDependency(name, .{});
+ // One by path (cloud9, until its pin returns) is there already.
+ const dep = @field(zon.dependencies, name);
+ if (@hasField(@TypeOf(dep), "hash")) if (!std.Build.package_map.get(dep.hash).?.available) {
+ _ = b.lazyDependency(name, .{});
+ };
}
const cloud9 = b.dependency("cloud9", .{ .target = target, .optimize = optimize }).module("cloud9");
for (core_mods) |mod| mod.addImport("cloud9", cloud9);