diff --git a/libraries/cmake/source/rocksdb/CMakeLists.txt b/libraries/cmake/source/rocksdb/CMakeLists.txt index f84897a788b..6bcef44bc32 100644 --- a/libraries/cmake/source/rocksdb/CMakeLists.txt +++ b/libraries/cmake/source/rocksdb/CMakeLists.txt @@ -381,28 +381,23 @@ function(rocksdbMain) endif() if(PLATFORM_LINUX) - if(TARGET_PROCESSOR STREQUAL "x86_64") - target_compile_definitions(thirdparty_rocksdb PRIVATE - NPERF_CONTEXT - OS_LINUX - ROCKSDB_FALLOCATE_PRESENT - ROCKSDB_LIB_IO_POSIX - ROCKSDB_MALLOC_USABLE_SIZE - ROCKSDB_NO_DYNAMIC_EXTENSION - ROCKSDB_PLATFORM_POSIX - ROCKSDB_PTHREAD_ADAPTIVE_MUTEX - ROCKSDB_RANGESYNC_PRESENT - ROCKSDB_SCHED_GETCPU_PRESENT - ) + target_compile_definitions(thirdparty_rocksdb PRIVATE + NPERF_CONTEXT + OS_LINUX + ROCKSDB_AUXV_GETAUXVAL_PRESENT + ROCKSDB_FALLOCATE_PRESENT + ROCKSDB_LIB_IO_POSIX + ROCKSDB_MALLOC_USABLE_SIZE + ROCKSDB_NO_DYNAMIC_EXTENSION + ROCKSDB_PLATFORM_POSIX + ROCKSDB_PTHREAD_ADAPTIVE_MUTEX + ROCKSDB_RANGESYNC_PRESENT + ROCKSDB_SCHED_GETCPU_PRESENT + ) - elseif(TARGET_PROCESSOR STREQUAL "aarch64") + if(TARGET_PROCESSOR STREQUAL "aarch64") target_compile_definitions(thirdparty_rocksdb PRIVATE - NIOSTATS_CONTEXT - NPERF_CONTEXT - OS_LINUX - ROCKSDB_LIB_IO_POSIX - ROCKSDB_NO_DYNAMIC_EXTENSION - ROCKSDB_PLATFORM_POSIX + -DNIOSTATS_CONTEXT ) endif()