mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 01:04:13 +08:00
mdbx-cmake: добавлена поддержка опции MDBX_AVOID_MSYNC
.
This commit is contained in:
parent
98e29fe628
commit
9cdee2adb5
@ -494,11 +494,14 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
|
|||||||
if(MDBX_NTDLL_EXTRA_IMPLIB)
|
if(MDBX_NTDLL_EXTRA_IMPLIB)
|
||||||
add_mdbx_option(MDBX_WITHOUT_MSVC_CRT "Avoid dependence from MSVC CRT and use ntdll.dll instead" OFF)
|
add_mdbx_option(MDBX_WITHOUT_MSVC_CRT "Avoid dependence from MSVC CRT and use ntdll.dll instead" OFF)
|
||||||
endif()
|
endif()
|
||||||
|
set(MDBX_AVOID_MSYNC_DEFAULT ON)
|
||||||
else()
|
else()
|
||||||
add_mdbx_option(MDBX_USE_OFDLOCKS "Use Open file description locks (aka OFD locks, non-POSIX)" AUTO)
|
add_mdbx_option(MDBX_USE_OFDLOCKS "Use Open file description locks (aka OFD locks, non-POSIX)" AUTO)
|
||||||
mark_as_advanced(MDBX_USE_OFDLOCKS)
|
mark_as_advanced(MDBX_USE_OFDLOCKS)
|
||||||
|
set(MDBX_AVOID_MSYNC_DEFAULT OFF)
|
||||||
endif()
|
endif()
|
||||||
add_mdbx_option(MDBX_LOCKING "Locking method (Win32=-1, SysV=5, POSIX=1988, POSIX=2001, POSIX=2008, Futexes=1995)" AUTO)
|
option(MDBX_AVOID_MSYNC "Controls dirty pages tracking, spilling and persisting in MDBX_WRITEMAP mode" ${MDBX_AVOID_MSYNC_DEFAULT})
|
||||||
|
add_mdbx_option(MDBX_LOCKING "Locking method (Windows=-1, SysV=5, POSIX=1988, POSIX=2001, POSIX=2008, Futexes=1995)" AUTO)
|
||||||
mark_as_advanced(MDBX_LOCKING)
|
mark_as_advanced(MDBX_LOCKING)
|
||||||
add_mdbx_option(MDBX_TRUST_RTC "Does a system have battery-backed Real-Time Clock or just a fake" AUTO)
|
add_mdbx_option(MDBX_TRUST_RTC "Does a system have battery-backed Real-Time Clock or just a fake" AUTO)
|
||||||
mark_as_advanced(MDBX_TRUST_RTC)
|
mark_as_advanced(MDBX_TRUST_RTC)
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
#cmakedefine01 MDBX_TRUST_RTC
|
#cmakedefine01 MDBX_TRUST_RTC
|
||||||
#endif
|
#endif
|
||||||
#cmakedefine01 MDBX_DISABLE_VALIDATION
|
#cmakedefine01 MDBX_DISABLE_VALIDATION
|
||||||
|
#cmakedefine01 MDBX_AVOID_MSYNC
|
||||||
|
|
||||||
/* Windows */
|
/* Windows */
|
||||||
#cmakedefine01 MDBX_WITHOUT_MSVC_CRT
|
#cmakedefine01 MDBX_WITHOUT_MSVC_CRT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user