Bug 1522016 - Build NEON support for libopus on aarch64. r=jmvalin

aarch64 ABI supports NEON as default, so we should turn on NEON code for
aarch64.  Also, libopus's NEON code doesn't support MSVC yet.

Differential Revision: https://phabricator.services.mozilla.com/D17332

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Makoto Kato 2019-01-24 02:45:01 +00:00
Родитель 763557eef3
Коммит 213cb734bc
1 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -130,6 +130,15 @@ if CONFIG['CPU_ARCH'] == 'arm' and CONFIG['GNU_AS']:
]
ASFLAGS += CONFIG['NEON_FLAGS']
if CONFIG['CPU_ARCH'] == 'aarch64' and CONFIG['CC_TYPE'] in ('clang', 'gcc'):
DEFINES['OPUS_ARM_PRESUME_AARCH64_NEON_INTR'] = True
DEFINES['OPUS_ARM_PRESUME_NEON'] = True
DEFINES['OPUS_ARM_PRESUME_NEON_INTR'] = True
SOURCES += celt_sources_arm_neon_intr
SOURCES += silk_sources_arm_neon_intr
if not CONFIG['MOZ_SAMPLE_TYPE_FLOAT32']:
SOURCES += silk_sources_fixed_arm_neon_intr
# Suppress warnings in third-party code.
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
if CONFIG['CC_TYPE'] == 'clang':