use -mavx clang style options to enable SIMD for clang-cl#257
use -mavx clang style options to enable SIMD for clang-cl#257wangyoucao577 wants to merge 4 commits intoxiph:masterfrom
Conversation
Signed-off-by: Jay Zhang <wangyoucao577@gmail.com>
Signed-off-by: Jay Zhang <wangyoucao577@gmail.com>
| add_sources_group(opus celt ${celt_sources_sse}) | ||
| target_compile_definitions(opus PRIVATE OPUS_X86_MAY_HAVE_SSE) | ||
| if(NOT MSVC) | ||
| if(NOT (MSVC AND CMAKE_C_COMPILER_ID STREQUAL "MSVC")) |
There was a problem hiding this comment.
Maybe easier to make a variable for the case when using MSVC compiler frontend and not.
|
@wangyoucao577 can you add the same check for all other compiler flags regarding clang-cl frontend. (fast-math etc) |
I checked all |
|
What's the status of this PR? |
|
Is it the correct fix to enable avx everywhere? |
|
Master branch is deleted and all pr's against master is closed. If this change is still relevant please reopen and repoint your PR to main branch. |
/arch:AVXMSVC style options to enable SIMD when strictly MSVC cl;-mavxgcc/clang style options to enable SIMD when possible, for example clang-cl installed in MSVC;C11forclang-cl;clang-cl;Closes #256