summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
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.