diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2026-05-01 19:24:47 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2026-05-01 19:24:47 +0200 |
| commit | 5bc6edf71afe1d9b115af7363e9ffd867f2a6a57 (patch) | |
| tree | 24550f4e6c00949014a2bfea882ad09b92956ed2 | |
| parent | f724ef3ee1ae51de809481fe93d8a16205702406 (diff) | |
build(typst): option to disable embedding fons
| -rw-r--r-- | build.zig | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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"); |
