• R/O
  • HTTP
  • SSH
  • HTTPS

timidity41: Commit


Commit MetaInfo

Révisionbe0b6054fb28cadbc268b3debdc730fd9a1c0b2d (tree)
l'heure2019-10-14 14:19:24
AuteurStarg <starg@user...>
CommiterStarg

Message de Log

[flac] Fix the issue where clang-cl rejects AVX2

Change Summary

Modification

--- a/FLAC/CMakeLists.txt
+++ b/FLAC/CMakeLists.txt
@@ -98,4 +98,12 @@ add_library(
9898 src/windows_unicode_filenames.c
9999 )
100100
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+
101109 target_link_libraries(FLAC ogg)
Afficher sur ancien navigateur de dépôt.