mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
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.
This commit is contained in:
parent
f4eac2deeb
commit
a90b3862d9
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue