From 2959dbc7358efcf421ce51bc9cd7eae8fdd8fec4 Mon Sep 17 00:00:00 2001 From: Jia Tan Date: Mon, 22 Jan 2024 23:33:39 +0800 Subject: [PATCH] liblzma: Update string_conversion.c to support RISC-V Filter. --- src/liblzma/common/string_conversion.c | 5 +++++ 1 file changed, 5 insertions(+) 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 },