summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--media/libaom/moz.build13
1 files changed, 12 insertions, 1 deletions
diff --git a/media/libaom/moz.build b/media/libaom/moz.build
index 68da0406c0..adc5892f37 100644
--- a/media/libaom/moz.build
+++ b/media/libaom/moz.build
@@ -105,7 +105,18 @@ if CONFIG['CLANG_CL'] or not CONFIG['_MSC_VER']:
SOURCES[f].flags += ['-mavx']
elif f.endswith('avx2.c'):
SOURCES[f].flags += ['-mavx2']
-
+if CONFIG['_MSC_VER']:
+ for f in SOURCES:
+ # MSVC massively chokes on inlining these SIMD sources, so disable inlining for them.
+ if f.endswith('cdef_block_sse2.c'):
+ SOURCES[f].flags += ['-Ob0']
+ elif f.endswith('cdef_block_ssse3.c'):
+ SOURCES[f].flags += ['-Ob0']
+ elif f.endswith('cdef_block_sse4.c'):
+ SOURCES[f].flags += ['-Ob0']
+ elif f.endswith('cdef_block_avx2.c'):
+ SOURCES[f].flags += ['-Ob0']
+
# Suppress warnings in third-party code.
if CONFIG['GNU_CC'] or CONFIG['CLANG_CL']:
CFLAGS += [