* so rocksdb is not built with -march=native, because
- this is not portable
- -march=native is not supported by older version of GCC on aarch64.
* and drop the sse42 specific settings for rocksdb. since rocksdb uses
"target" attribute to build sse42 optimized crc32, as long as the
compiler on building host is able to emit sse42 instructions.
see https://github.com/facebook/rocksdb/pull/2807
Fixes: http://tracker.ceph.com/issues/20529
Signed-off-by: Kefu Chai <kchai@redhat.com>
list(APPEND ROCKSDB_CMAKE_ARGS -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER})
endif(WITH_CCACHE AND CCACHE_FOUND)
- # We really want to have the CRC32 calculation in RocksDB accelerated
- # with SSE 4.2. For details refer to rocksdb/util/crc32c.cc.
- if (HAVE_INTEL_SSE4_2)
- list(APPEND ROCKSDB_CMAKE_ARGS -DCMAKE_CXX_FLAGS=${SIMD_COMPILE_FLAGS})
- else()
- list(APPEND ROCKSDB_CMAKE_ARGS -DWITH_SSE42=OFF)
- endif()
+ list(APPEND ROCKSDB_CMAKE_ARGS -DPORTABLE=ON)
list(APPEND ROCKSDB_CMAKE_ARGS -DCMAKE_AR=${CMAKE_AR})
list(APPEND ROCKSDB_CMAKE_ARGS -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE})