diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-17 14:27:57 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-17 14:27:57 -0300 |
| commit | dd85d1d636383a735171472c96fd595a91856530 (patch) | |
| tree | de5bdc9b10e4ef53dceedb0dc67c91b07d983d30 /build/core.zig | |
| parent | 73e324a8dc89837b5de35b5cedee3a112fad5ec4 (diff) | |
| download | pardes-dd85d1d636383a735171472c96fd595a91856530.tar.gz pardes-dd85d1d636383a735171472c96fd595a91856530.zip | |
build: the tty configures with no sketchbook beside it
The snake and veil GPU addons ask for sketchbook, a path dependency,
and a missing path is a fatal error at configure (reports/build-api.md
3.2), so every build failed without ../sketchbook, the terminal's too.
addons.gpu now asks for it under the window build alone (-Dplatform=gui
or the bare build); elsewhere snake-shader and veil are still steps,
which fail saying so. On the terminal's build the snake_shader addon's
--addon-test comparison goes with it (behaviour-test and addon-test run
the fake, snake, life and pdf ones there).
Gates: with ../sketchbook moved aside, zig build -l -Dplatform=tui (and
--print-configuration, and the musl shape) succeeds, where the parent
fails "failed to open ../sketchbook: FileNotFound"; -Dplatform=gui still
needs it. zig build -l and -h byte-identical, whole matrix; the
printed configuration byte-identical for the bare and gui shapes; the
tui, musl, nopdf, tsmin, ReleaseFast and macos shapes lose the
snake_shader and veil libraries, their installs, glslc runs, test and
--addon-test comparison and sketchbook's abi-hash tool, and gain one
Fail step; the tui configuration is the same with and without
sketchbook. Warm rebuild on tui (install addons, core-test shell-test
unit-test process-test): 0 compiles not cached, the parent's counts,
installed binaries cmp-identical to the parent's.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'build/core.zig')
| -rw-r--r-- | build/core.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/core.zig b/build/core.zig index 6656481a..2a434ba9 100644 --- a/build/core.zig +++ b/build/core.zig @@ -462,7 +462,7 @@ pub fn assemble(b: *std.Build, c: struct { const kind_mod = b.addTranslateC(.{ .root_source_file = b.path("src/kinds/pardes_addon.h"), .target = target, .optimize = optimize }).createModule(); // ...and what an addon in Zig imports over it (src/kinds/addon.zig). const addon_mod = b.createModule(.{ .root_source_file = b.path("src/kinds/addon.zig"), .target = target, .optimize = optimize, .imports = &.{.{ .name = "pardes_addon", .module = kind_mod }} }); - const snake_shader_lib = addons.gpu(b, target, optimize, addon_mod); + const snake_shader_lib = addons.gpu(b, target, optimize, addon_mod, c.also_gui or c.platform == .gui); const pdf_built = addons.pdf(b, .{ .addon_mod = addon_mod, .c_optimize = c_optimize, |
