File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,12 @@ option(MI_BUILD_OBJECT "Build object library" ON)
2121option (MI_BUILD_TESTS "Build test executables" ON )
2222option (MI_DEBUG_TSAN "Build with thread sanitizer (needs clang)" OFF )
2323option (MI_DEBUG_UBSAN "Build with undefined-behavior sanitizer (needs clang++)" OFF )
24+ option (MI_SKIP_COLLECT_ON_EXIT, "Skip collecting memory on program exit" OFF )
2425
2526# deprecated options
2627option (MI_CHECK_FULL "Use full internal invariant checking in DEBUG mode (deprecated, use MI_DEBUG_FULL instead)" OFF )
2728option (MI_INSTALL_TOPLEVEL "Install directly into $CMAKE_INSTALL_PREFIX instead of PREFIX/lib/mimalloc-version (deprecated)" OFF )
2829option (MI_USE_LIBATOMIC "Explicitly link with -latomic (on older systems) (deprecated and detected automatically)" OFF )
29- option (MI_SKIP_COLLECT_ON_EXIT, "Skip collecting memory on exit" OFF )
3030
3131include (GNUInstallDirs)
3232include ("cmake/mimalloc-config-version.cmake" )
@@ -119,6 +119,7 @@ if(MI_CHECK_FULL)
119119endif ()
120120
121121if (MI_SKIP_COLLECT_ON_EXIT)
122+ message (STATUS "Skip collecting memory on program exit (MI_SKIP_COLLECT_ON_EXIT=ON)" )
122123 list (APPEND mi_defines MI_SKIP_COLLECT_ON_EXIT=1)
123124endif ()
124125
You can’t perform that action at this time.
0 commit comments