Tests: Add RISC-V filter support in a few places.

This commit is contained in:
Jia Tan 2024-02-13 22:38:58 +08:00
parent 45663443eb
commit 89ea1a22f4
2 changed files with 12 additions and 0 deletions

View File

@ -48,6 +48,9 @@ static lzma_filter bcj_filters_encoders[] = {
#ifdef HAVE_ENCODER_SPARC #ifdef HAVE_ENCODER_SPARC
{ LZMA_FILTER_SPARC, NULL }, { LZMA_FILTER_SPARC, NULL },
#endif #endif
#ifdef HAVE_ENCODER_RISCV
{ LZMA_FILTER_RISCV, NULL },
#endif
}; };
// HAVE_ENCODERS ifdef not terminated here because decoders are // HAVE_ENCODERS ifdef not terminated here because decoders are
@ -77,6 +80,9 @@ static lzma_filter bcj_filters_decoders[] = {
#ifdef HAVE_DECODER_SPARC #ifdef HAVE_DECODER_SPARC
{ LZMA_FILTER_SPARC, NULL }, { LZMA_FILTER_SPARC, NULL },
#endif #endif
#ifdef HAVE_DECODER_RISCV
{ LZMA_FILTER_RISCV, NULL },
#endif
}; };
#endif #endif
#endif #endif

View File

@ -466,6 +466,9 @@ static const char supported_decoders[][9] = {
#ifdef HAVE_DECODER_ARM64 #ifdef HAVE_DECODER_ARM64
"arm64", "arm64",
#endif #endif
#ifdef HAVE_DECODER_RISCV
"riscv",
#endif
#ifdef HAVE_DECODER_DELTA #ifdef HAVE_DECODER_DELTA
"delta", "delta",
#endif #endif
@ -494,6 +497,9 @@ static const char supported_filters[][9] = {
#if defined(HAVE_ENCODER_ARM64) || defined(HAVE_DECODER_ARM64) #if defined(HAVE_ENCODER_ARM64) || defined(HAVE_DECODER_ARM64)
"arm64", "arm64",
#endif #endif
#if defined(HAVE_ENCODER_RISCV) || defined(HAVE_DECODER_RISCV)
"riscv",
#endif
#if defined(HAVE_ENCODER_DELTA) || defined(HAVE_DECODER_DELTA) #if defined(HAVE_ENCODER_DELTA) || defined(HAVE_DECODER_DELTA)
"delta", "delta",
#endif #endif