Bug 1836826 - Build libvpx with dotprod and i8mm cpu features as needed. r=glandium

Differential Revision: https://phabricator.services.mozilla.com/D190451
This commit is contained in:
Andreas Pehrson 2023-10-10 07:15:05 +00:00
Родитель 7b058566c8
Коммит 4badb41d37
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -110,6 +110,10 @@ for f in SOURCES:
SOURCES[f].flags += ['-mavx'] SOURCES[f].flags += ['-mavx']
if 'avx2.c' in f: if 'avx2.c' in f:
SOURCES[f].flags += ['-mavx2'] SOURCES[f].flags += ['-mavx2']
if 'neon_dotprod.c' in f:
SOURCES[f].flags += ['-march=armv8.2-a+dotprod']
if 'neon_i8mm.c' in f:
SOURCES[f].flags += ['-march=armv8.2-a+dotprod+i8mm']
# Suppress warnings in third-party code. # Suppress warnings in third-party code.
CFLAGS += [ CFLAGS += [