Files
zooqueen 0f1e1b5143 merge: ClickHouse 26.6.1.1 into datastore — preserve debrand + ZAP + gRPC/gcloud removal
Merge upstream/changelog-26.6 (9593 commits) into our debranded fork.
- 190 conflicts resolved: 24 delete-side kept-removed (grpc/arrowflight/gcloud), submodules+version→26.6,
  contrib/CMakeLists keeps zap + new libpng, drops capnproto (zap provides kj), Server.cpp/CMakeLists
  re-apply the ZAP wiring + gRPC/arrowflight/gcloud removal.
- Full-tree debrand re-swept over the new 26.6 code (uniform Datastore naming; Azure fork Clickhouse*
  symbols preserved). 0 clickhouse in product src/programs/CMakeLists.
- Version now 26.6.1.1. gRPC/google-cloud/chdig stay removed; ZAP remains the transport.
2026-06-23 12:23:48 -07:00

27 lines
1020 B
CMake

set(ENABLE_CHDIG_DEFAULT ${ENABLE_RUST})
# SANITIZE - Some issues with undefined symbols
# NO_ARMV81_OR_HIGHER - Disabled because ring assumes that Neon is available with ARM
# OS_FREEBSD - linking issues (undefined reference to `getrandom' and CityHash128())
if (ENABLE_CHDIG_DEFAULT AND (SANITIZE OR NO_ARMV81_OR_HIGHER OR OS_FREEBSD))
message(STATUS "Environment is not compatible with chdig. Disabling.")
set(ENABLE_CHDIG_DEFAULT OFF)
endif()
option(ENABLE_CHDIG "Use chdig" ${ENABLE_CHDIG_DEFAULT})
# Explicitly check for ENABLE_RUST one more time if it was enabled before, but now disabled, i.e.
#
# cmake -DENABLE_RUST=1
# cmake -DENABLE_RUST=0
if (NOT ENABLE_CHDIG OR NOT ENABLE_RUST)
message(STATUS "Not using chdig")
return()
endif()
datastore_import_crate(MANIFEST_PATH ../chdig/Cargo.toml FEATURES tls)
datastore_config_crate_flags(chdig)
add_library(ch_rust::chdig ALIAS chdig)
if (OS_DARWIN)
target_link_libraries(chdig INTERFACE "-framework AppKit")
endif()