Browse Source

MDEV-16860 MyRocks: support CRC32 instructions on Winx64

Compile on Windows MSVC with -DHAVE_SSE2 and -DHAVE_PCLMUL

It is safe, since code will do also runtime checks via cpuid(), before
using the instructions, and will fallback to slower versions,
if instructions are not available.
pull/831/head
Vladislav Vaintroub 7 years ago
parent
commit
a90b3862d9
  1. 4
      storage/rocksdb/build_rocksdb.cmake

4
storage/rocksdb/build_rocksdb.cmake

@ -376,7 +376,9 @@ SET(SOURCES)
FOREACH(s ${ROCKSDB_SOURCES})
list(APPEND SOURCES ${ROCKSDB_SOURCE_DIR}/${s})
ENDFOREACH()
IF(MSVC)
add_definitions(-DHAVE_SSE42 -DHAVE_PCLMUL)
ENDIF()
IF(CMAKE_VERSION VERSION_GREATER "2.8.10")
STRING(TIMESTAMP GIT_DATE_TIME "%Y-%m-%d %H:%M:%S")
ENDIF()

Loading…
Cancel
Save