mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
USE PORTABLE to avoid Illegal instruction, add SANITIZE for rocksdb cmake build
options
This commit is contained in:
parent
1f4a63b6c6
commit
99cfb8aa2b
11
contrib/CMakeLists.txt
vendored
11
contrib/CMakeLists.txt
vendored
@ -324,5 +324,16 @@ if (USE_INTERNAL_ROCKSDB_LIBRARY)
|
||||
set(WITH_BENCHMARK_TOOLS OFF)
|
||||
set(WITH_TOOLS OFF)
|
||||
set(WITH_GFLAGS OFF)
|
||||
set(PORTABLE ON)
|
||||
set(FORCE_SSE42 ON)
|
||||
|
||||
if (SANITIZE STREQUAL "undefined")
|
||||
set(WITH_UBSAN ON)
|
||||
elseif (SANITIZE STREQUAL "address")
|
||||
set(WITH_ASAN ON)
|
||||
elseif (SANITIZE STREQUAL "thread")
|
||||
set(WITH_TSAN ON)
|
||||
endif()
|
||||
|
||||
add_subdirectory (rocksdb)
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user