diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-17 13:19:25 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-17 13:19:25 -0300 |
| commit | 9aa2ac1a21bd96260538f2657ff37b63562380ff (patch) | |
| tree | 98a18057f85e9c92d8f27fd3b34ea9258c1075d0 /build.zig | |
| parent | 73b7602b7948fe4b459f4344f091910297d4a107 (diff) | |
| download | pardes-9aa2ac1a21bd96260538f2657ff37b63562380ff.tar.gz pardes-9aa2ac1a21bd96260538f2657ff37b63562380ff.zip | |
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 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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. |
