From 9aa2ac1a21bd96260538f2657ff37b63562380ff Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 17 Nov 2026 13:19:25 -0300 Subject: build: comments and manual rows that said what is not so build.zig's note that the module map is folded out of root_mod's import table (nothing reads it), the note about cloud9 by path (it has a hash), the note about the fold above the image addon; build.zig.zon's `-Dsdl` (the window's builds fetch SDL); docs/typ/building.typ's -Dtheme-animation row (never an option) and "unit-test runs it too" moved back from hxlib to lib-test, which unit-test does run. zig build --print-configuration, -l and -h byte-identical over the matrix (bare, tui, gui, macos, ReleaseFast, -Dpdf=false, -Dtree-sitter=minimal, musl, -Dtracy, test/lib). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T --- build.zig | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'build.zig') diff --git a/build.zig b/build.zig index a3df919f..f553c1ce 100644 --- a/build.zig +++ b/build.zig @@ -231,7 +231,6 @@ pub fn build(b: *std.Build) void { var core_mods_buf: [6]*std.Build.Module = undefined; var core_shells_buf: [6]Platform = undefined; var core_mods_len: usize = 0; - // root_mod FIRST: the module map below is folded out of its import table. for ([_]CoreMod{ .{ .mod = root_mod, .shell = platform }, // hxdiff's headless core and pardes-isolate are the primary shell's @@ -254,7 +253,7 @@ 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| { - // One by path (cloud9, until its pin returns) is there already. + // A dependency by path (none of these today) has no hash and is always there. const dep = @field(zon.dependencies, name); if (@hasField(@TypeOf(dep), "hash")) if (!std.Build.package_map.get(dep.hash).?.available) { _ = b.lazyDependency(name, .{}); @@ -740,8 +739,6 @@ pub fn build(b: *std.Build) void { // library and no allocator hook of its own (it takes Zig allocators). const xitdb_mod = b.dependency("xitdb", .{ .target = target, .optimize = optimize }).module("xitdb"); - // One call per module instead of one line per module per dependency, and - // BEFORE the fold below, which reads what these imports put in the table. // The image addon (addons/image/image.zig over stb_image, stb.c), // installed by its step and handed by path to every test that opens a // picture. -- cgit v1.3