diff options
author | Moonchild <moonchild@palemoon.org> | 2022-09-08 16:52:26 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2022-09-08 16:52:26 +0000 |
commit | 0682d4ac0e98d0c1afc58ddff0440c6288f199fa (patch) | |
tree | 3b81d27b4b3a7e85a0ad827dce5859062b5d1d6e /media | |
parent | 1fba5c3cc7dc145c2f7966e653e3b7cadd3f1905 (diff) | |
download | uxp-0682d4ac0e98d0c1afc58ddff0440c6288f199fa.tar.gz |
No Issue - prevent build issue in MSVC due to libaom SIMD inlining.
Diffstat (limited to 'media')
-rw-r--r-- | media/libaom/moz.build | 13 |
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 += [ |