mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 09:18:42 +09:00
No Issue - prevent build issue in MSVC due to libaom SIMD inlining.
This commit is contained in:
parent
b93c4ada8a
commit
42b9149fbc
1 changed files with 12 additions and 1 deletions
|
|
@ -117,7 +117,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 += [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue