Skip to content

Commit

Permalink
Fix building on Solaris 10 x86_64 GCC 4.9.2
Browse files Browse the repository at this point in the history
Prevent building x86_64 ASM from Solaris x86_64
  • Loading branch information
likema committed Jan 13, 2024
1 parent dcf784a commit 185ea24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/cmake/lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ file(GLOB DecompressSources ${LIBRARY_DIR}/decompress/*.c)
if (MSVC)
add_compile_options(-DZSTD_DISABLE_ASM)
else ()
if(CMAKE_SYSTEM_PROCESSOR MATCHES "amd64.*|AMD64.*|x86_64.*|X86_64.*")
if(CMAKE_SYSTEM_PROCESSOR MATCHES "amd64.*|AMD64.*|x86_64.*|X86_64.*" AND NOT CMAKE_SYSTEM_NAME STREQUAL "SunOS")
set(DecompressSources ${DecompressSources} ${LIBRARY_DIR}/decompress/huf_decompress_amd64.S)
else()
add_compile_options(-DZSTD_DISABLE_ASM)
Expand All @@ -64,7 +64,7 @@ if (ZSTD_BUILD_COMPRESSION)
set(Headers ${Headers} ${CompressHeaders})
endif()
if (ZSTD_BUILD_DECOMPRESSION)
set(Sources ${Sources} ${DecompressSources})
set(Sources ${Sources} ${DecompressSources} ${DecompressASMSources})
set(Headers ${Headers} ${DecompressHeaders})
endif()
if (ZSTD_BUILD_DICTBUILDER)
Expand Down

0 comments on commit 185ea24

Please sign in to comment.