mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 00:30:49 +00:00
Fix CMake for ENABLE_RUST
This commit is contained in:
parent
b161773f71
commit
29084d92d8
@ -98,6 +98,8 @@ if (USE_STATIC_LIBRARIES)
|
||||
list(REVERSE CMAKE_FIND_LIBRARY_SUFFIXES)
|
||||
endif ()
|
||||
|
||||
option (ENABLE_RUST "Build libraries written in Rust" ON)
|
||||
|
||||
option (ENABLE_FUZZING "Fuzzy testing using libfuzzer" OFF)
|
||||
|
||||
if (ENABLE_FUZZING)
|
||||
|
@ -54,23 +54,8 @@ usize_is_size_t = true
|
||||
# "feature = serde" = "DEFINE_SERDE"
|
||||
|
||||
[export]
|
||||
include = ["Hash", "Hash::from_hex_api", "Hasher_shim"]
|
||||
exclude = ["blake3_compress_in_place_avx512",
|
||||
"blake3_compress_in_place_portable",
|
||||
"blake3_compress_in_place_sse2",
|
||||
"blake3_compress_in_place_sse41",
|
||||
"blake3_compress_xof_avx512",
|
||||
"blake3_compress_xof_sse2",
|
||||
"blake3_compress_xof_sse41",
|
||||
"blake3_hash_many_avx2",
|
||||
"blake3_hash_many_avx512",
|
||||
"blake3_hash_many_neon",
|
||||
"blake3_hash_many_sse2",
|
||||
"blake3_hash_many_sse41",
|
||||
"BLOCK_LEN",
|
||||
"CHUNK_LEN",
|
||||
"DEGREE",
|
||||
]
|
||||
include = []
|
||||
exclude = []
|
||||
# prefix = "CAPI_"
|
||||
item_types = []
|
||||
renaming_overrides_prefixing = false
|
||||
|
2
contrib/CMakeLists.txt
vendored
2
contrib/CMakeLists.txt
vendored
@ -92,7 +92,7 @@ add_contrib (openldap-cmake openldap)
|
||||
add_contrib (grpc-cmake grpc)
|
||||
add_contrib (msgpack-c-cmake msgpack-c)
|
||||
|
||||
if (ENABLE_BLAKE3)
|
||||
if (ENABLE_RUST)
|
||||
add_contrib (BLAKE3)
|
||||
endif()
|
||||
|
||||
|
@ -34,7 +34,9 @@ list (APPEND PRIVATE_LIBS
|
||||
)
|
||||
|
||||
if (USE_BLAKE3)
|
||||
target_link_libraries(clickhouse_functions PUBLIC ch_contrib::blake3)
|
||||
list (APPEND PUBLIC_LIBS
|
||||
ch_contrib::blake3
|
||||
)
|
||||
endif()
|
||||
|
||||
if (TARGET OpenSSL::Crypto)
|
||||
|
Loading…
Reference in New Issue
Block a user