Skip to content

Commit

Permalink
Linux aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
Smjert committed Feb 27, 2024
1 parent df31f18 commit 159da8f
Showing 1 changed file with 15 additions and 20 deletions.
35 changes: 15 additions & 20 deletions libraries/cmake/source/rocksdb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 159da8f

Please sign in to comment.