aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJia Tan <jiat0218@gmail.com>2024-01-22 23:33:39 +0800
committerJia Tan <jiat0218@gmail.com>2024-01-23 23:05:47 +0800
commit2959dbc7358efcf421ce51bc9cd7eae8fdd8fec4 (patch)
tree0c3eb2ad2a95447eafae1ae5ab818bd7a1c1c77b
parentCMake: Support RISC-V BCJ Filter for encoding and decoding. (diff)
downloadxz-2959dbc7358efcf421ce51bc9cd7eae8fdd8fec4.tar.xz
liblzma: Update string_conversion.c to support RISC-V Filter.
-rw-r--r--src/liblzma/common/string_conversion.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/liblzma/common/string_conversion.c b/src/liblzma/common/string_conversion.c
index d2c1e809..ad8241e2 100644
--- a/src/liblzma/common/string_conversion.c
+++ b/src/liblzma/common/string_conversion.c
@@ -509,6 +509,11 @@ static const struct {
&parse_bcj, bcj_optmap, 1, 1, true },
#endif
+#if defined(HAVE_ENCODER_RISCV) || defined(HAVE_DECODER_RISCV)
+ { "riscv", sizeof(lzma_options_bcj), LZMA_FILTER_RISCV,
+ &parse_bcj, bcj_optmap, 1, 1, true },
+#endif
+
#if defined(HAVE_ENCODER_POWERPC) || defined(HAVE_DECODER_POWERPC)
{ "powerpc", sizeof(lzma_options_bcj), LZMA_FILTER_POWERPC,
&parse_bcj, bcj_optmap, 1, 1, true },