mirror of
https://github.com/facebook/rocksdb.git
synced 2026-07-07 14:47:40 +08:00
8c0790bdf8
Summary: Refresh the fbcode platform010 toolchain and library pins to current third-party2 versions, and remove the now-unused Intel TBB dependency. Toolchain / deps: - Fix update_dependencies.sh: the gcc and binutils trees moved from centos8-native to centos9-native, so the old paths resolved to nothing and a re-run emitted empty GCC_BASE/BINUTILS_BASE. Point them at centos9-native. - Bump clang 15 -> 21; binutils 2.37 -> 2.43; libunwind 1.4 -> 1.8; valgrind 3.19 -> 3.22; plus hash-only refreshes for the LATEST-tracked libs. Regenerate dependencies_platform010.sh. - Keep GCC pinned at 11.x. The only newer GCC in third-party2 (13.x) is built for glibc >= 2.35 (its libgcc_s needs _dl_find_object@GLIBC_2.35), but platform010 ships glibc 2.34, so GCC 13 will not link/run here. - zlib stays 1.2.8 (the only version with an x86_64 platform010 build). - Document why GCC/libgcc/glibc/zlib remain pinned in update_dependencies.sh. Remove TBB (no longer used) from the build system: the get_lib_base entry, both fbcode_config*.sh, build_detect_platform detection, the CMake WITH_TBB option / find_dependency, and cmake/modules/FindTBB.cmake. Dockerfiles and the HISTORY.md changelog are left untouched. (TBB was used by the old clock cache, long ago removed.) Although this change was originally motivated by upgrading gcc for its libasan not to hit process lifetime thread limits, upgrading gcc proved impractical under platform010. Bonus: fix USBAN+gcc build by making GetParam() valid by the time it is called in several test class constructors. Pull Request resolved: https://github.com/facebook/rocksdb/pull/14882 Test Plan: a variety of local builds (gcc, clang; various sanitizers) using fbcode tooling No production code changes Reviewed By: xingbowang Differential Revision: D109631787 Pulled By: pdillinger fbshipit-source-id: 9c466c59b039c2a67ee0318c0ccbac02e19f537b
51 lines
844 B
CMake
51 lines
844 B
CMake
@PACKAGE_INIT@
|
|
|
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/modules")
|
|
|
|
include(CMakeFindDependencyMacro)
|
|
|
|
set(GFLAGS_USE_TARGET_NAMESPACE @GFLAGS_USE_TARGET_NAMESPACE@)
|
|
|
|
if(@WITH_JEMALLOC@)
|
|
find_dependency(JeMalloc)
|
|
endif()
|
|
|
|
if(@WITH_GFLAGS@)
|
|
find_dependency(gflags CONFIG)
|
|
if(NOT gflags_FOUND)
|
|
find_dependency(gflags)
|
|
endif()
|
|
endif()
|
|
|
|
if(@WITH_SNAPPY@)
|
|
find_dependency(Snappy CONFIG)
|
|
if(NOT Snappy_FOUND)
|
|
find_dependency(Snappy)
|
|
endif()
|
|
endif()
|
|
|
|
if(@WITH_ZLIB@)
|
|
find_dependency(ZLIB)
|
|
endif()
|
|
|
|
if(@WITH_BZ2@)
|
|
find_dependency(BZip2)
|
|
endif()
|
|
|
|
if(@WITH_LZ4@)
|
|
find_dependency(lz4)
|
|
endif()
|
|
|
|
if(@WITH_ZSTD@)
|
|
find_dependency(zstd)
|
|
endif()
|
|
|
|
if(@WITH_NUMA@)
|
|
find_dependency(NUMA)
|
|
endif()
|
|
|
|
find_dependency(Threads)
|
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/RocksDBTargets.cmake")
|
|
check_required_components(RocksDB)
|