build: Use Visual Studio-specific flags for AVX

Needed for now, but unstable-simd is likely a better fix for all our
SIMD building.
This commit is contained in:
Arun Raghavan
2023-12-15 09:34:15 -05:00
parent c6abf6cd3f
commit 06157f1659
3 changed files with 11 additions and 4 deletions

View File

@ -177,8 +177,8 @@ if have_x86
],
dependencies: common_deps,
include_directories: webrtc_inc,
c_args: common_cflags + apm_flags + ['-mavx2', '-mfma'],
cpp_args: common_cxxflags + apm_flags + ['-mavx2', '-mfma']
c_args: common_cflags + apm_flags + avx_flags,
cpp_args: common_cxxflags + apm_flags + avx_flags
)
]
endif