From 4badb41d37977d8401d8876126cc56bb5542c5df Mon Sep 17 00:00:00 2001 From: Andreas Pehrson Date: Tue, 10 Oct 2023 07:15:05 +0000 Subject: [PATCH] Bug 1836826 - Build libvpx with dotprod and i8mm cpu features as needed. r=glandium Differential Revision: https://phabricator.services.mozilla.com/D190451 --- media/libvpx/moz.build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/media/libvpx/moz.build b/media/libvpx/moz.build index d8c82b392a7f..388f55cc3f11 100644 --- a/media/libvpx/moz.build +++ b/media/libvpx/moz.build @@ -110,6 +110,10 @@ for f in SOURCES: SOURCES[f].flags += ['-mavx'] if 'avx2.c' in f: 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. CFLAGS += [