diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2016-07-05 16:37:42 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2016-08-04 10:45:20 +0400 |
commit | 9c2215e022c325599bd1b66d1f2214529fb99a24 (patch) | |
tree | 03aff125ec9f83a01c813badc4988f821416c724 /cmake | |
parent | 86975e0492c03535271aea67e0b5e7e8fd0b1b78 (diff) | |
download | mariadb-git-9c2215e022c325599bd1b66d1f2214529fb99a24.tar.gz |
MDEV-9872 - Add common optimized CRC32 function interface
Move crc32-vpmsum to extra.
Compile static crc32-vpmsum instead of adding sources directly.
Make use of crc32-vpmsum via my_checksum().
Based on contribution by Daniel Black.
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/crc32-vpmsum.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/crc32-vpmsum.cmake b/cmake/crc32-vpmsum.cmake new file mode 100644 index 00000000000..c1a2dee56e2 --- /dev/null +++ b/cmake/crc32-vpmsum.cmake @@ -0,0 +1,5 @@ +IF(CMAKE_SYSTEM_PROCESSOR MATCHES "ppc64le") + SET(HAVE_CRC32_VPMSUM 1) + SET(CRC32_VPMSUM_LIBRARY crc32-vpmsum) + ADD_SUBDIRECTORY(extra/crc32-vpmsum) +ENDIF() |