Merge pull request #4018 from sfc-gh-tclinkenbeard/backport-gcc-rocks-override

Backport ability to disable building RocksDB with GCC (release 6.3)
This commit is contained in:
Trevor Clinkenbeard 2020-11-05 10:24:31 -08:00 committed by GitHub
commit 870eade9c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -106,10 +106,10 @@ endif()
# RocksDB
################################################################################
set(SSD_ROCKSDB_EXPERIMENTAL OFF CACHE BOOL "Build with experimental RocksDB support")
set(SSD_ROCKSDB_EXPERIMENTAL ON CACHE BOOL "Build with experimental RocksDB support")
# RocksDB is currently enabled by default for GCC but does not build with the latest
# Clang.
if (SSD_ROCKSDB_EXPERIMENTAL OR GCC)
if (SSD_ROCKSDB_EXPERIMENTAL AND GCC)
set(WITH_ROCKSDB_EXPERIMENTAL ON)
else()
set(WITH_ROCKSDB_EXPERIMENTAL OFF)