summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-17 00:24:06 -0300
committerGabriel Schneider <[email protected]>2026-11-17 12:15:01 -0300
commitf2829440b0f933422e1da5394870505d3c2d67d6 (patch)
tree1404a30697f3b64de5d54b52a74007143d40e4e3 /build.zig
parent20bfc56562068ff963281d562cba17a65880ec2d (diff)
parent2ddceb90430806905988ae9bef4b3d921f75515e (diff)
downloadsketchbook-f2829440b0f933422e1da5394870505d3c2d67d6.tar.gz
sketchbook-f2829440b0f933422e1da5394870505d3c2d67d6.zip
Merge the audio work and the incremental reload loop
The mixer's knee, newSound, sfxr, voice rate and groups, the scope's public pieces, micscope and spheres as examples; with the loader workaround for Zig 0.17.1's incremental linker and the panic-trace link. The README's hot-reload bullet takes the incremental loop's paragraph; zig build test: 164/164 steps, 132/132 tests. Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index 12192e6..02d312e 100644
--- a/build.zig
+++ b/build.zig
@@ -212,6 +212,9 @@ pub fn build(b: *Build) void {
// field name, through the real dlopen path and the headless host.
const v1 = sb.app(.{ .name = "counter", .root_source_file = b.path("test/counter_v1.zig") }).addLibrary();
const v2 = sb.app(.{ .name = "counter", .root_source_file = b.path("test/counter_v2.zig") }).addLibrary();
+ // v2 through the linker `-fincremental` uses, whose 0.17.1 libraries
+ // glibc loads only after the host's fixup (`withoutVersym`).
+ v2.use_new_linker = true;
// Command.shape on the native host: the parity cases, screenshotted
// and checked pixel by pixel (tools/shapes_web.mjs compares the same
// sketch in headless Chrome: `zig build test-web`).