aboutsummaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2026-05-01 19:24:47 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2026-05-01 19:24:47 +0200
commit5bc6edf71afe1d9b115af7363e9ffd867f2a6a57 (patch)
tree24550f4e6c00949014a2bfea882ad09b92956ed2 /build.zig
parentf724ef3ee1ae51de809481fe93d8a16205702406 (diff)
build(typst): option to disable embedding fons
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 5c65779..5669a1d 100644
--- a/build.zig
+++ b/build.zig
@@ -9,6 +9,7 @@ pub fn build(b: *std.Build) void {
const optimize = b.standardOptimizeOption(.{});
const short = b.option(bool, "short", "skip long tests") orelse false;
+ const no_embed_fonts = b.option(bool, "no-embed-fonts", "dont embed fonts for typst") orelse false;
const options = b.addOptions();
options.addOption(bool, "short", short);
@@ -19,6 +20,7 @@ pub fn build(b: *std.Build) void {
"cargo", "build",
});
build_typst.setCwd(b.path(TYPST));
+ if (no_embed_fonts) build_typst.addArg("--no-default-features");
switch (optimize) {
.ReleaseSmall => {
build_typst.addArg("--profile");