mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-19 16:20:50 +00:00
Fix the compilation error that occurs when opening avx series instructions (#55049)
* fix the compilation error that occurs when opening avx series instructions cmake command example: ```shell cmake .. -DCMAKE_BUILD_TYPE=Release -DENABLE_AVX=ON -DENABLE_AVX2=ON -DENABLE_AVX2_FOR_SPEC_OP=ON ``` * Update snappy CMakeLists.txt add SNAPPY_HAVE_X86_CRC32 parameter
This commit is contained in:
parent
c7f78ac73a
commit
3ef092f83f
@ -24,6 +24,12 @@ else ()
|
|||||||
set (SNAPPY_HAVE_SSSE3 0)
|
set (SNAPPY_HAVE_SSSE3 0)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
if (ARCH_AMD64 AND ENABLE_SSE42)
|
||||||
|
set (SNAPPY_HAVE_X86_CRC32 1)
|
||||||
|
else ()
|
||||||
|
set (SNAPPY_HAVE_X86_CRC32 0)
|
||||||
|
endif ()
|
||||||
|
|
||||||
configure_file(
|
configure_file(
|
||||||
"${SOURCE_DIR}/cmake/config.h.in"
|
"${SOURCE_DIR}/cmake/config.h.in"
|
||||||
"${CMAKE_CURRENT_BINARY_DIR}/config.h")
|
"${CMAKE_CURRENT_BINARY_DIR}/config.h")
|
||||||
|
Loading…
Reference in New Issue
Block a user