mdbx-cmake: support of MDBX_USE_FALLOCATE for CMake and Conan (backport).

This commit is contained in:
Леонид Юрьев (Leonid Yuriev)
2025-10-20 12:52:36 +03:00
parent 7a6a4eae8d
commit 55f2ffda3b
5 changed files with 17 additions and 2 deletions

View File

@@ -700,6 +700,8 @@ mark_as_advanced(MDBX_ENABLE_PROFGC)
add_option(MDBX ENABLE_DBI_SPARSE
"Support for sparse sets of DBI handles to reduce overhead when starting and processing transactions" ON)
add_option(MDBX ENABLE_DBI_LOCKFREE "Support for deferred releasing and a lockfree path to quickly open DBI handles" ON)
add_option(MDBX USE_FALLOCATE "Using posix_fallocate() or fcntl(F_PREALLOCATE) on OSX" AUTO)
mark_as_advanced(MDBX_USE_FALLOCATE)
if(NOT MDBX_AMALGAMATED_SOURCE)
if(CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE_UPPERCASE STREQUAL "DEBUG")