mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Remove unbundled fastops support
This commit is contained in:
parent
b51bbde713
commit
cbf8867f50
@ -498,7 +498,6 @@ include (cmake/find/miniselect.cmake)
|
||||
include (cmake/find/curl.cmake)
|
||||
include (cmake/find/s3.cmake)
|
||||
include (cmake/find/fast_float.cmake)
|
||||
include (cmake/find/fastops.cmake)
|
||||
include (cmake/find/libpqxx.cmake)
|
||||
include (cmake/find/yaml-cpp.cmake)
|
||||
include (cmake/find/nlp.cmake)
|
||||
|
@ -1,24 +0,0 @@
|
||||
if(ARCH_AMD64 AND NOT OS_FREEBSD AND NOT OS_DARWIN)
|
||||
option(ENABLE_FASTOPS "Enable fast vectorized mathematical functions library by Mikhail Parakhin" ${ENABLE_LIBRARIES})
|
||||
elseif(ENABLE_FASTOPS)
|
||||
message (${RECONFIGURE_MESSAGE_LEVEL} "Fastops library is supported on x86_64 only, and not FreeBSD or Darwin")
|
||||
endif()
|
||||
|
||||
if(NOT ENABLE_FASTOPS)
|
||||
set(USE_FASTOPS 0)
|
||||
return()
|
||||
endif()
|
||||
|
||||
if(NOT EXISTS "${ClickHouse_SOURCE_DIR}/contrib/fastops/fastops/fastops.h")
|
||||
message(WARNING "submodule contrib/fastops is missing. to fix try run: \n git submodule update --init")
|
||||
message (${RECONFIGURE_MESSAGE_LEVEL} "Can't find internal fastops library")
|
||||
set(MISSING_INTERNAL_FASTOPS_LIBRARY 1)
|
||||
endif()
|
||||
|
||||
if(NOT MISSING_INTERNAL_FASTOPS_LIBRARY)
|
||||
set(USE_FASTOPS 1)
|
||||
set(FASTOPS_INCLUDE_DIR ${ClickHouse_SOURCE_DIR}/contrib/fastops/)
|
||||
set(FASTOPS_LIBRARY fastops)
|
||||
endif()
|
||||
|
||||
message(STATUS "Using fastops=${USE_FASTOPS}: ${FASTOPS_INCLUDE_DIR} : ${FASTOPS_LIBRARY}")
|
6
contrib/CMakeLists.txt
vendored
6
contrib/CMakeLists.txt
vendored
@ -134,11 +134,7 @@ endif ()
|
||||
|
||||
add_subdirectory (base64-cmake)
|
||||
add_subdirectory (simdjson-cmake)
|
||||
|
||||
if (USE_FASTOPS)
|
||||
add_subdirectory (fastops-cmake)
|
||||
endif()
|
||||
|
||||
add_subdirectory (fastops-cmake)
|
||||
add_subdirectory (libuv-cmake)
|
||||
add_subdirectory (amqpcpp-cmake) # requires: libuv
|
||||
add_subdirectory (cassandra-cmake) # requires: libuv
|
||||
|
@ -1,3 +1,14 @@
|
||||
if(ARCH_AMD64 AND NOT OS_FREEBSD AND NOT OS_DARWIN)
|
||||
option(ENABLE_FASTOPS "Enable fast vectorized mathematical functions library by Mikhail Parakhin" ${ENABLE_LIBRARIES})
|
||||
elseif(ENABLE_FASTOPS)
|
||||
message (${RECONFIGURE_MESSAGE_LEVEL} "Fastops library is supported on x86_64 only, and not FreeBSD or Darwin")
|
||||
endif()
|
||||
|
||||
if(NOT ENABLE_FASTOPS)
|
||||
message(STATUS "Not using fast vectorized mathematical functions library by Mikhail Parakhin")
|
||||
return()
|
||||
endif()
|
||||
|
||||
set(LIBRARY_DIR "${ClickHouse_SOURCE_DIR}/contrib/fastops")
|
||||
|
||||
set(SRCS "")
|
||||
@ -17,3 +28,5 @@ set (SRCS ${SRCS} "${LIBRARY_DIR}/fastops/plain/ops_plain.cpp" "${LIBRARY_DIR}/f
|
||||
add_library(fastops ${SRCS})
|
||||
|
||||
target_include_directories(fastops SYSTEM PUBLIC "${LIBRARY_DIR}")
|
||||
|
||||
add_library(ch_contrib::fastops ALIAS fastops)
|
||||
|
@ -1,3 +1,4 @@
|
||||
include(configure_config.cmake)
|
||||
configure_file(config_functions.h.in ${ConfigIncludePath}/config_functions.h)
|
||||
|
||||
add_subdirectory(divide)
|
||||
@ -14,7 +15,6 @@ target_link_libraries(clickhouse_functions
|
||||
PUBLIC
|
||||
ch_contrib::cityhash
|
||||
ch_contrib::farmhash
|
||||
${FASTOPS_LIBRARY}
|
||||
clickhouse_dictionaries
|
||||
clickhouse_dictionaries_embedded
|
||||
clickhouse_parsers
|
||||
@ -58,8 +58,8 @@ if (TARGET ch_contrib::icu)
|
||||
target_link_libraries (clickhouse_functions PRIVATE ch_contrib::icu)
|
||||
endif ()
|
||||
|
||||
if (USE_FASTOPS)
|
||||
target_include_directories (clickhouse_functions SYSTEM PRIVATE ${FASTOPS_INCLUDE_DIR})
|
||||
if (TARGET ch_contrib::fastops)
|
||||
target_link_libraries (clickhouse_functions PRIVATE ch_contrib::fastops)
|
||||
endif ()
|
||||
|
||||
if (ENABLE_EXAMPLES)
|
||||
|
3
src/Functions/configure_config.cmake
Normal file
3
src/Functions/configure_config.cmake
Normal file
@ -0,0 +1,3 @@
|
||||
if (TARGET ch_contrib::fastops)
|
||||
set(USE_FASTOPS 1)
|
||||
endif()
|
Loading…
Reference in New Issue
Block a user