liblzma: Enable ARM64 BCJ filters in bundled build

CMake's bundled libarchive can request the ARM64 BCJ filter when
extracting 7-Zip archives that use the ARM64 method.  The bundled
liblzma build already carries the ARM64 simple filter implementation,
but CMake's reduced build configuration did not enable it or compile
its source file.

Enable the ARM64 encoder and decoder declarations and include
liblzma/simple/arm64.c in the bundled liblzma build.
This commit is contained in:
NihilDigit
2026-06-24 00:02:43 +08:00
parent 088aef1e68
commit 8f94e20abc
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -40,6 +40,7 @@ set(HAVE_CHECK_CRC64 1)
set(HAVE_CHECK_SHA256 1)
set(HAVE_DECODER_ARM 1)
set(HAVE_DECODER_ARM64 1)
set(HAVE_DECODER_ARMTHUMB 1)
set(HAVE_DECODER_DELTA 1)
set(HAVE_DECODER_IA64 1)
@@ -50,6 +51,7 @@ set(HAVE_DECODER_SPARC 1)
set(HAVE_DECODER_X86 1)
set(HAVE_ENCODER_ARM 1)
set(HAVE_ENCODER_ARM64 1)
set(HAVE_ENCODER_ARMTHUMB 1)
set(HAVE_ENCODER_DELTA 1)
set(HAVE_ENCODER_IA64 1)
@@ -133,6 +135,7 @@ SET(LZMA_SRCS
liblzma/lzma/lzma_encoder_presets.c
liblzma/rangecoder/price_table.c
liblzma/simple/arm.c
liblzma/simple/arm64.c
liblzma/simple/armthumb.c
liblzma/simple/ia64.c
liblzma/simple/powerpc.c
+2
View File
@@ -46,6 +46,7 @@ typedef KWIML_INT_uintptr_t uintptr_t;
#define HAVE_CHECK_SHA256 1
#define HAVE_DECODER_ARM 1
#define HAVE_DECODER_ARM64 1
#define HAVE_DECODER_ARMTHUMB 1
#define HAVE_DECODER_DELTA 1
#define HAVE_DECODER_IA64 1
@@ -56,6 +57,7 @@ typedef KWIML_INT_uintptr_t uintptr_t;
#define HAVE_DECODER_X86 1
#define HAVE_ENCODER_ARM 1
#define HAVE_ENCODER_ARM64 1
#define HAVE_ENCODER_ARMTHUMB 1
#define HAVE_ENCODER_DELTA 1
#define HAVE_ENCODER_IA64 1