mirror of
https://github.com/MariaDB/server.git
synced 2026-05-07 23:54:31 +02:00
MDEV-37001 Enable building RocksDB on non-Linux aarch64 OSes
Now that RocksDB has been synced up to 6.29 which includes the changes mentioned in the CMake comment support for building on non-Linux aarch64 OSes can be enabled.
This commit is contained in:
parent
6d684b64d5
commit
fadfd9ea28
2 changed files with 2 additions and 11 deletions
|
|
@ -76,15 +76,6 @@ IF(MSVC_ARM64)
|
|||
SKIP_ROCKSDB_PLUGIN("Windows ARM64 not supported")
|
||||
ENDIF()
|
||||
|
||||
#
|
||||
# Also, disable on ARM64 when not Linux
|
||||
# Requires submodule update to v6.16.3
|
||||
# containing commit https://github.com/facebook/rocksdb/commit/ee4bd4780b321ddb5f92a0f4eb956f2a2ebd60dc
|
||||
#
|
||||
IF(CMAKE_SYSTEM_PROCESSOR MATCHES "(arm64|aarch64)" AND NOT CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
SKIP_ROCKSDB_PLUGIN("ARM64 disabled on all except Linux")
|
||||
ENDIF()
|
||||
|
||||
# This plugin needs recent C++ compilers (it is using C++11 features)
|
||||
# Skip build for the old compilers
|
||||
SET(CXX11_FLAGS)
|
||||
|
|
|
|||
|
|
@ -481,7 +481,7 @@ else()
|
|||
util/crc32c_ppc_asm.S)
|
||||
endif(CMAKE_SYSTEM_PROCESSOR MATCHES "ppc64")
|
||||
# aarch
|
||||
if(CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64|AARCH64")
|
||||
if(CMAKE_SYSTEM_PROCESSOR MATCHES "arm64|aarch64|AARCH64")
|
||||
INCLUDE(CheckCXXCompilerFlag)
|
||||
CHECK_CXX_COMPILER_FLAG("-march=armv8-a+crc+crypto" HAS_ARMV8_CRC)
|
||||
if(HAS_ARMV8_CRC)
|
||||
|
|
@ -490,7 +490,7 @@ else()
|
|||
list(APPEND ROCKSDB_SOURCES
|
||||
util/crc32c_arm64.cc)
|
||||
endif(HAS_ARMV8_CRC)
|
||||
endif(CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64|AARCH64")
|
||||
endif(CMAKE_SYSTEM_PROCESSOR MATCHES "arm64|aarch64|AARCH64")
|
||||
endif()
|
||||
SET(SOURCES)
|
||||
FOREACH(s ${ROCKSDB_SOURCES})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue