Bug 1874254 - Allow decompression of both x86 and ARM BCJs on all platforms r=nalexander,mhowell

Without this change, MARs compressed with (for example) x86 BCJ filters fail to decompress on Apple Silicon. This change isn't strictly _necessary_ in that we are not planning to need this support, but it has the potential to prevent problems in testing and production. The consequences of turning it on should be minimal.

Differential Revision: https://phabricator.services.mozilla.com/D198443
This commit is contained in:
Robin Steuber 2024-01-16 17:37:38 +00:00
parent 5d93ff874c
commit 59d7d764bb

View File

@ -21,15 +21,10 @@ UNIFIED_SOURCES += [
AllowCompilerWarnings()
if CONFIG['TARGET_CPU'] == 'arm':
# Accept arm, armv7, etc.
if CONFIG['MOZ_THUMB2']:
DEFINES['XZ_DEC_ARMTHUMB'] = 1
else:
DEFINES['XZ_DEC_ARM'] = 1
elif CONFIG['INTEL_ARCHITECTURE']:
# Accept x86, x86_64, i386, i686, etc.
DEFINES['XZ_DEC_X86'] = 1
# Accept arm, armv7, etc.
DEFINES['XZ_DEC_ARM'] = 1
# Accept x86, x86_64, i386, i686, etc.
DEFINES['XZ_DEC_X86'] = 1
DEFINES['XZ_USE_CRC64'] = 1