summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-08 20:58:56 -0300
committerGabriel Schneider <[email protected]>2026-11-08 21:48:19 -0300
commit97568ff864876098579f5510624ae92995404d75 (patch)
tree8d56d654039f6ef5ef859da1241c8506a52eb03a /build.zig
parent9a7eb67ba60fed36a65db3d68ab22abf40807682 (diff)
downloadpardes-97568ff864876098579f5510624ae92995404d75.tar.gz
pardes-97568ff864876098579f5510624ae92995404d75.zip
fix: a build with the addons compiled in (any off Linux, the static step) and -Dpdf=false did not compile, Addon.zig importing a pdf_addon the build had not made: the builtin_addons options say whether the pdf addon is built, and without it the image addon is compiled in alone; an aarch64-macos -Dpdf=false compile no longer names pdf_addon (its one error left is daemon.zig's darwin CMSG_CLOEXEC, a break of its own)
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index 60020e85..35f4c55b 100644
--- a/build.zig
+++ b/build.zig
@@ -879,6 +879,8 @@ pub fn build(b: *std.Build) void {
builtin_off.addOption(bool, "on", false);
const builtin_on = b.addOptions();
builtin_on.addOption(bool, "on", true);
+ // ...the pdf one only when it is built (-Dpdf=false leaves it out).
+ builtin_on.addOption(bool, "pdf", pdf_addon != null);
for (core_mods, core_shells) |mod, shell| {
// config.zig's test checks the words and keys docs/typ names exist.