File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -38,11 +38,15 @@ include_directories(${LIBRARY_DIR} ${LIBRARY_DIR}/common)
3838
3939file (GLOB CommonSources ${LIBRARY_DIR} /common/*.c)
4040file (GLOB CompressSources ${LIBRARY_DIR} /compress/*.c)
41+ file (GLOB DecompressSources ${LIBRARY_DIR} /decompress/*.c)
4142if (MSVC )
42- file (GLOB DecompressSources ${LIBRARY_DIR} /decompress/*.c)
4343 add_compile_options (-DZSTD_DISABLE_ASM)
4444else ()
45- file (GLOB DecompressSources ${LIBRARY_DIR} /decompress/*.c ${LIBRARY_DIR} /decompress/*.S)
45+ if (CMAKE_SYSTEM_PROCESSOR MATCHES "amd64.*|AMD64.*|x86_64.*|X86_64.*" )
46+ set (DecompressSources ${DecompressSources} ${LIBRARY_DIR} /decompress/huf_decompress_amd64.S)
47+ else ()
48+ add_compile_options (-DZSTD_DISABLE_ASM)
49+ endif ()
4650endif ()
4751file (GLOB DictBuilderSources ${LIBRARY_DIR} /dictBuilder/*.c)
4852file (GLOB DeprecatedSources ${LIBRARY_DIR} /deprecated/*.c)
You can’t perform that action at this time.
0 commit comments