Bug 1063356 - Update libvpx build flags. r=kinetik,ted
authorRalph Giles <giles@mozilla.com>
Tue, 07 Oct 2014 10:14:07 -0700
changeset 211071 3363b89ef1b760a6243feef1457bd1b1e63d120b
parent 211070 3093663c5c228510cea59ef68bdefe8ec286cbe0
child 211072 5c07229d5dbd97312225067afbf22beea7e4e524
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewerskinetik, ted
bugs1063356
milestone36.0a1
Bug 1063356 - Update libvpx build flags. r=kinetik,ted Propagate ssse3 and sse4.1 build flags from configure. This is required by new optimations in upstream commit c731d6a4f19eea861ceb2ff31399420b2452eb74.
media/libvpx/moz.build
--- a/media/libvpx/moz.build
+++ b/media/libvpx/moz.build
@@ -40,16 +40,23 @@ if CONFIG['VPX_X86_ASM']:
     if '64' in CONFIG['OS_TEST']:
         SOURCES += files['X86-64_ASM']
 
     # AVX2 only supported on
     # Darwin toolchain right now
     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']
 
 arm_asm_files = []
 if CONFIG['VPX_ARM_ASM']:
     arm_asm_files += files['ARM_ASM']
 
     if CONFIG['VPX_AS_CONVERSION']: