Closed LimingFang closed 1 year ago
-march=native
isn't supported on Apple Silicon until llvm@15 if we use clang++.
#old CMakeLists.txt
elseif(CMAKE_SYSTEM_NAME MATCHES "Darwin")
add_definitions(-DOS_MACOSX)
if(CMAKE_SYSTEM_PROCESSOR MATCHES arm)
add_definitions(-DIOS_CROSS_COMPILE -DROCKSDB_LITE)
# no debug info for IOS, that will make our library big
add_definitions(-DNDEBUG)
If CMAKE_SYSTEM_NAME
matches "Darwin", the platforms is either x86_64 OSX or arm64 OSX rather than iOS
. So when we cmake
on apple-m1, we would get a lite version of RocksDB rather then a non-lite RocksDB.
Here is a list of CMAKE_SYSTEM_NAME
.
@yapple PTAL😬
224