Révision | be0b6054fb28cadbc268b3debdc730fd9a1c0b2d (tree) |
---|---|
l'heure | 2019-10-14 14:19:24 |
Auteur | Starg <starg@user...> |
Commiter | Starg |
[flac] Fix the issue where clang-cl rejects AVX2
@@ -98,4 +98,12 @@ add_library( | ||
98 | 98 | src/windows_unicode_filenames.c |
99 | 99 | ) |
100 | 100 | |
101 | +if(MSVC AND "${CMAKE_C_COMPILER_ID}" MATCHES "Clang" AND NOT TIM41_USE_AVX2) | |
102 | + set_source_files_properties( | |
103 | + src/lpc_intrin_avx2.c src/stream_encoder_intrin_avx2.c | |
104 | + PROPERTIES | |
105 | + COMPILE_OPTIONS /arch:AVX2 | |
106 | + ) | |
107 | +endif() | |
108 | + | |
101 | 109 | target_link_libraries(FLAC ogg) |