Fix freebsd build

This commit is contained in:
Robert Schulze 2024-08-08 07:29:20 +00:00
parent 5c97205742
commit 5a17d93bf3
No known key found for this signature in database
GPG Key ID: 26703B55FB13728A

View File

@ -11,7 +11,7 @@ option(WITH_LZ4 "build with lz4" ON)
option(WITH_ZLIB "build with zlib" ON)
option(WITH_ZSTD "build with zstd" ON)
if (ENABLE_JEMALLOC)
if (ENABLE_JEMALLOC AND OS_LINUX) # gives compile errors with jemalloc enabled for rocksdb on non-Linux
add_definitions(-DROCKSDB_JEMALLOC -DJEMALLOC_NO_DEMANGLE)
list (APPEND THIRDPARTY_LIBS ch_contrib::jemalloc)
endif ()