OSDN Git Service
(root)
/
timidity41
/
timidity41.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e318e8
)
[flac] Fix the issue where clang-cl rejects AVX2
author
Starg
<starg@users.osdn.me>
Mon, 14 Oct 2019 05:19:24 +0000
(14:19 +0900)
committer
Starg
<starg@users.osdn.me>
Mon, 14 Oct 2019 05:19:24 +0000
(14:19 +0900)
FLAC/CMakeLists.txt
patch
|
blob
|
history
diff --git
a/FLAC/CMakeLists.txt
b/FLAC/CMakeLists.txt
index
c9f4c87
..
2070965
100644
(file)
--- a/
FLAC/CMakeLists.txt
+++ b/
FLAC/CMakeLists.txt
@@
-98,4
+98,12
@@
add_library(
src/windows_unicode_filenames.c
)
+if(MSVC AND "${CMAKE_C_COMPILER_ID}" MATCHES "Clang" AND NOT TIM41_USE_AVX2)
+ set_source_files_properties(
+ src/lpc_intrin_avx2.c src/stream_encoder_intrin_avx2.c
+ PROPERTIES
+ COMPILE_OPTIONS /arch:AVX2
+ )
+endif()
+
target_link_libraries(FLAC ogg)