mirror of
https://github.com/aaru-dps/libaaruformat.git
synced 2025-12-16 11:14:39 +00:00
Do not use assembly in FLAC.
This commit is contained in:
15
3rdparty/flac.cmake
vendored
15
3rdparty/flac.cmake
vendored
@@ -91,22 +91,9 @@ if (FLAC__CPU_X86_64 OR FLAC__CPU_IA32)
|
|||||||
option(WITH_AVX "Enable AVX, AVX2 optimizations" ON)
|
option(WITH_AVX "Enable AVX, AVX2 optimizations" ON)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
include(CheckLanguage)
|
add_definitions(-DFLAC__NO_ASM)
|
||||||
check_language(ASM_NASM)
|
|
||||||
if (CMAKE_ASM_NASM_COMPILER)
|
|
||||||
enable_language(ASM_NASM)
|
|
||||||
add_definitions(-DFLAC__HAS_NASM)
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
if (NOT WITH_ASM)
|
|
||||||
add_definitions(-DFLAC__NO_ASM)
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
if (FLAC__CPU_IA32)
|
if (FLAC__CPU_IA32)
|
||||||
if (WITH_ASM AND CMAKE_ASM_NASM_COMPILER)
|
|
||||||
add_subdirectory(ia32)
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
option(WITH_SSE "Enable SSE2 optimizations" ON)
|
option(WITH_SSE "Enable SSE2 optimizations" ON)
|
||||||
check_c_compiler_flag(-msse2 HAVE_MSSE2_FLAG)
|
check_c_compiler_flag(-msse2 HAVE_MSSE2_FLAG)
|
||||||
if (WITH_SSE)
|
if (WITH_SSE)
|
||||||
|
|||||||
Reference in New Issue
Block a user