mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
daaa881cfe
Also added support for MAP_SYNC. It allows to achieve decent performance with DAX devices even when libpmem is unavailable. Fixed Windows version of my_msync(): according to manual FlushViewOfFile() may return before flush is actually completed. It is advised to issue FlushFileBuffers() after FlushViewOfFile().
13 lines
378 B
CMake
13 lines
378 B
CMake
INCLUDE(CheckIncludeFiles)
|
|
OPTION(WITH_PMEM "Enable persistent memory features" OFF)
|
|
IF(WITH_PMEM)
|
|
FIND_LIBRARY(LIBPMEM pmem)
|
|
CHECK_INCLUDE_FILES(libpmem.h HAVE_LIBPMEM_H)
|
|
IF (NOT LIBPMEM)
|
|
MESSAGE(FATAL_ERROR "Can't find libpmem")
|
|
ELSEIF(NOT HAVE_LIBPMEM_H)
|
|
MESSAGE(FATAL_ERROR "Can't find libpmem.h")
|
|
ELSE()
|
|
ADD_DEFINITIONS(-DHAVE_PMEM)
|
|
ENDIF()
|
|
ENDIF()
|