File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,10 @@ if (MSVC)
42
42
file (GLOB DecompressSources ${LIBRARY_DIR} /decompress/*.c )
43
43
add_compile_options (-DZSTD_DISABLE_ASM )
44
44
else ()
45
- file (GLOB DecompressSources ${LIBRARY_DIR} /decompress/*.c ${LIBRARY_DIR} /decompress/*.S )
45
+ file (GLOB DecompressSources ${LIBRARY_DIR} /decompress/*.c )
46
+ if (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND NOT CMAKE_SYSTEM_NAME STREQUAL "SunOS" )
47
+ file (GLOB DecompressASMSources ${LIBRARY_DIR} /decompress/*.S )
48
+ endif ()
46
49
endif ()
47
50
file (GLOB DictBuilderSources ${LIBRARY_DIR} /dictBuilder/*.c )
48
51
file (GLOB DeprecatedSources ${LIBRARY_DIR} /deprecated/*.c )
@@ -60,7 +63,7 @@ if (ZSTD_BUILD_COMPRESSION)
60
63
set (Headers ${Headers} ${CompressHeaders} )
61
64
endif ()
62
65
if (ZSTD_BUILD_DECOMPRESSION )
63
- set (Sources ${Sources} ${DecompressSources} )
66
+ set (Sources ${Sources} ${DecompressSources} ${DecompressASMSources} )
64
67
set (Headers ${Headers} ${DecompressHeaders} )
65
68
endif ()
66
69
if (ZSTD_BUILD_DICTBUILDER )
You can’t perform that action at this time.
0 commit comments