[ih264] per-function target attribute on clang and GCC (#328)

This commit is contained in:
emiyl 2022-10-04 14:24:14 +01:00 committed by GitHub
parent 8a0fe21589
commit 4519a59d74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 179 additions and 4 deletions

View file

@ -6,10 +6,6 @@ set(LIBAVCDEC_X86_INCLUDES "common/x86" "decoder/x86")
include_directories("common/" "decoder/" ${LIBAVCDEC_X86_INCLUDES})
if((CMAKE_C_COMPILER_ID MATCHES "GNU") OR (CMAKE_C_COMPILER_ID MATCHES "Clang"))
add_compile_options(-mssse3 -mavx2)
endif()
add_library (ih264d
"common/ih264_buf_mgr.c"
"common/ih264_buf_mgr.h"