From 19ccc50338e1ff3d5268ac091aa906673ad63abe Mon Sep 17 00:00:00 2001 From: Like Ma Date: Sat, 13 Jan 2024 15:24:04 +0800 Subject: [PATCH] Fix building on Solaris 10 x86_64 GCC 4.9.2 Prevent building x86_64 ASM from Solaris x86_64 --- build/cmake/lib/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/cmake/lib/CMakeLists.txt b/build/cmake/lib/CMakeLists.txt index 5e52ef1e4d7..36eadc580c8 100644 --- a/build/cmake/lib/CMakeLists.txt +++ b/build/cmake/lib/CMakeLists.txt @@ -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)