aboutsummaryrefslogtreecommitdiff
path: root/scripts/zstd.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/zstd.py')
-rw-r--r--scripts/zstd.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/zstd.py b/scripts/zstd.py
index f85e7da..2cfa149 100644
--- a/scripts/zstd.py
+++ b/scripts/zstd.py
@@ -16,6 +16,8 @@ def zstd(filelist, args):
if args.dict is not None:
write_item(args.output, 'dict', args.dict.read())
print("constexpr auto dictionary = std::span(dict, dict_len);", file=args.output)
+ else:
+ print("constexpr std::span<const uint8_t> dictionary {};", file=args.output)
print("constexpr auto compression = embed::Zstd;", file=args.output)