mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-03 05:59:31 +03:00
comments
This commit is contained in:
parent
4fcf56af2e
commit
0be6db0e28
1 changed files with 3 additions and 1 deletions
|
@ -19,7 +19,9 @@ endif()
|
|||
find_package(mimalloc 1.9 CONFIG REQUIRED)
|
||||
message(STATUS "Found mimalloc installed at: ${MIMALLOC_LIBRARY_DIR} (${MIMALLOC_VERSION_DIR})")
|
||||
|
||||
# overriding with a dynamic library
|
||||
|
||||
# link with a dynamic shared library
|
||||
# use `LD_PRELOAD` to actually override malloc/free at runtime with mimalloc
|
||||
add_executable(dynamic-override main-override.c)
|
||||
target_link_libraries(dynamic-override PUBLIC mimalloc)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue