mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-30 16:22:07 +08:00
mdbx-cmake: rename MDBX_USE_VALGRIND option.
Change-Id: I985befb6c60e8a8c8db1b5d9dd085eb4645b038b
This commit is contained in:
parent
b905dea2ee
commit
42f8154c39
@ -294,7 +294,7 @@ message(STATUS "Use C${MDBX_C_STANDARD} for libmdbx")
|
|||||||
# #### # # # #### # # ####
|
# #### # # # #### # # ####
|
||||||
#
|
#
|
||||||
|
|
||||||
set(MDBX_BUILD_OPTIONS ENABLE_ASAN ENABLE_VALGRIND ENABLE_GPROF ENABLE_GCOV)
|
set(MDBX_BUILD_OPTIONS ENABLE_ASAN MDBX_USE_VALGRIND ENABLE_GPROF ENABLE_GCOV)
|
||||||
add_mdbx_option(MDBX_BUILD_SHARED_LIBRARY "Build libmdbx as shared library (DLL)" ${BUILD_SHARED_LIBS})
|
add_mdbx_option(MDBX_BUILD_SHARED_LIBRARY "Build libmdbx as shared library (DLL)" ${BUILD_SHARED_LIBS})
|
||||||
add_mdbx_option(MDBX_ALLOY_BUILD "Build MDBX library as single object file" ON)
|
add_mdbx_option(MDBX_ALLOY_BUILD "Build MDBX library as single object file" ON)
|
||||||
add_mdbx_option(MDBX_TXN_CHECKOWNER "Checking transaction matches the calling thread inside libmdbx's API" ON)
|
add_mdbx_option(MDBX_TXN_CHECKOWNER "Checking transaction matches the calling thread inside libmdbx's API" ON)
|
||||||
|
@ -34,9 +34,9 @@ else()
|
|||||||
check_include_file(valgrind/memcheck.h HAVE_VALGRIND_MEMCHECK_H)
|
check_include_file(valgrind/memcheck.h HAVE_VALGRIND_MEMCHECK_H)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
option(ENABLE_VALGRIND "Enable integration with valgrind, a memory analyzing tool" OFF)
|
option(MDBX_USE_VALGRIND "Enable integration with valgrind, a memory analyzing tool" OFF)
|
||||||
if(ENABLE_VALGRIND AND NOT HAVE_VALGRIND_MEMCHECK_H)
|
if(MDBX_USE_VALGRIND AND NOT HAVE_VALGRIND_MEMCHECK_H)
|
||||||
message(FATAL_ERROR "ENABLE_VALGRIND option is set but valgrind/memcheck.h is not found")
|
message(FATAL_ERROR "MDBX_USE_VALGRIND option is set but valgrind/memcheck.h is not found")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
option(ENABLE_ASAN
|
option(ENABLE_ASAN
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
#cmakedefine HAS_RELAXED_CONSTEXPR
|
#cmakedefine HAS_RELAXED_CONSTEXPR
|
||||||
|
|
||||||
#cmakedefine LTO_ENABLED
|
#cmakedefine LTO_ENABLED
|
||||||
#cmakedefine ENABLE_VALGRIND
|
#cmakedefine MDBX_USE_VALGRIND
|
||||||
#cmakedefine ENABLE_GPROF
|
#cmakedefine ENABLE_GPROF
|
||||||
#cmakedefine ENABLE_GCOV
|
#cmakedefine ENABLE_GCOV
|
||||||
#cmakedefine ENABLE_ASAN
|
#cmakedefine ENABLE_ASAN
|
||||||
|
Loading…
x
Reference in New Issue
Block a user