<feed xmlns='http://www.w3.org/2005/Atom'>
<title>pardes.git/build/mupdf.zig, branch main</title>
<subtitle>Pardes</subtitle>
<id>https://git.0x4200.cafe/pardes.git/atom?h=main</id>
<link rel='self' href='https://git.0x4200.cafe/pardes.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/pardes.git/'/>
<updated>2026-11-17T17:33:52Z</updated>
<entry>
<title>build: typst found at make time; the deprecated build names replaced</title>
<updated>2026-11-17T17:33:52Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-17T17:30:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/pardes.git/commit/?id=3e77fdcd57693b337d915873e9919de2e1ec6521'/>
<id>urn:sha1:3e77fdcd57693b337d915873e9919de2e1ec6521</id>
<content type='text'>
docs.add takes typst through b.findProgramLazy: the three renders run
the program found at make time, and without typst on PATH the step that
renders fails ("program not found") where three addFail steps and the
optional renders said so before. findProgram was the configure cache's
poison; build() now poisons it itself, with the reason (the environment,
the clock and vendor/ are read untracked: REORG decision 20 keeps the
configure uncached). Line for a line: lazyDependency -&gt; dependencyLazy
(catch for orelse), runAllowFail -&gt; runFallible, b.dupe -&gt;
b.graph.dupeString, .ReleaseSafe -&gt; .safe; build.zig through zig fmt.
Left: gui.zig's three lazyDependency calls (lines 62-176, which another
change rewrites) and std.Build.package_map (no line-for-line
replacement: dependencyLazy's error would have to reach build()).

Gates: zig build -l and -h byte-identical, whole matrix and test/lib
(its configuration too); the configuration gains the find-program step
and the typst runs are named run typst (...) instead of by the path
found, nothing else changes; --print-configuration-path still a tmp/
path, twice; zig build cheatsheet writes cheatsheet.pdf, and with PATH
holding zig alone fails "program not found" while -l succeeds. Warm:
install addons, core-test shell-test unit-test process-test on tui, and
install addons on gui: 0 compiles not cached, binaries cmp-identical.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
</content>
</entry>
<entry>
<title>build: build() cut into build/*.zig, as pure moves</title>
<updated>2026-11-17T16:26:17Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-17T16:26:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/pardes.git/commit/?id=e5c57a863004914136c4e6b0fa13ed805b3b383d'/>
<id>urn:sha1:e5c57a863004914136c4e6b0fa13ed805b3b383d</id>
<content type='text'>
build.zig 2,406 -&gt; 658 lines; the pieces moved verbatim into a file per
thing, each a function called where its code stood, so every step, module
and option is made in the same order as before: build/docs.zig (the typst
renders, builtins-json, command-line.txt), build/addons.zig (the GPU
addons, the pdf addon and its benches, the image addon), build/patches.zig
(vaxis, zstbi, ghostty's kitty loader, mvzr), build/gui.zig (the window's
shells and its renderer and atlas tests), build/macos.zig (the app, dmg,
e2e, its unit-test), build/tools.zig (harnesses, hx*, benches, perf, the
syntax snapshots, lib-test, history), build/tests.zig (unit-test and its
roots), build/library.zig (what a dependent package gets), build/core.zig
(the options module, themes, grammars, uucode, the editor module,
wireCore); mupdf.zig is build/mupdf.zig. A fragment takes what it uses as
explicit parameters, or as one struct of exactly those (cloud9's and
build/process.zig's pattern). Platform, PerfBuild and TreeSitterGrammars
stay in build.zig: Options names an enum or struct by @typeName, so where
they are declared is in every options file.

Gate: zig build --print-configuration, -l and -h byte-identical to the
base over bare (-Dhome-install=false), tui, gui, macos, tui and gui
ReleaseFast, -Dpdf=false (tui, gui), -Dtree-sitter=minimal, musl,
-Dtracy, and test/lib's -l and --print-configuration.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
</content>
</entry>
</feed>
