mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-07 11:58:41 +03:00
add flags, add function declaration
This commit is contained in:
parent
e946d56ba0
commit
f8dc519a04
3 changed files with 15 additions and 0 deletions
|
@ -12,6 +12,7 @@ option(MI_USE_CXX "Use the C++ compiler to compile the library" OFF)
|
|||
option(MI_SECURE "Use security mitigations (like guard pages and randomization)" OFF)
|
||||
option(MI_LOCAL_DYNAMIC_TLS "Use slightly slower, dlopen-compatible TLS mechanism (Unix)" OFF)
|
||||
option(MI_BUILD_TESTS "Build test executables" ON)
|
||||
option(MI_USER_CLEANUP "Enable mi_register_user_cleanup functionality" OFF)
|
||||
|
||||
set(mi_install_dir "lib/mimalloc-${mi_version}")
|
||||
|
||||
|
@ -71,6 +72,11 @@ if(MI_SECURE MATCHES "ON")
|
|||
list(APPEND mi_defines MI_SECURE=2)
|
||||
endif()
|
||||
|
||||
if(MI_USER_CLEANUP MATCHES "ON")
|
||||
message(STATUS "Enable mi_register_user_cleanup functionality (MI_USER_CLEANUP=ON)")
|
||||
list(APPEND mi_defines MI_USER_CLEANUP=1)
|
||||
endif()
|
||||
|
||||
if(MI_SEE_ASM MATCHES "ON")
|
||||
message(STATUS "Generate assembly listings (MI_SEE_ASM=ON)")
|
||||
list(APPEND mi_cflags -save-temps)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue