diff --git a/media/libvpx/moz.build b/media/libvpx/moz.build index 03aa3edd5aa6..97797e66273d 100644 --- a/media/libvpx/moz.build +++ b/media/libvpx/moz.build @@ -45,6 +45,13 @@ if CONFIG['VPX_X86_ASM']: if CONFIG['OS_TARGET'] == 'Darwin': SOURCES += files['AVX2'] + # Expected support is hard-coded in the various vpx_config files but + # we need to propagate the config checks here to get the right flags. + if CONFIG['HAVE_TOOLCHAIN_SUPPORT_MSSSE3']: + CFLAGS += ['-mssse3'] + if CONFIG['HAVE_TOOLCHAIN_SUPPORT_MSSE4_1']: + CFLAGS += ['-msse4.1'] + #postproc is only enabled on x86 with asm SOURCES += files['VP8_POSTPROC']