We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Originally posted by @achamayou in #6746 (comment)
The text was updated successfully, but these errors were encountered:
It does look like we should be able to use something like:
set(SNMALLOC_ENABLE_DYNAMIC_LOADING ON) set_property(TARGET snmalloc-new-override PROPERTY POSITION_INDEPENDENT_CODE ON) ... build snmalloc target_link_libraries($OUR_LIB INTERFACE snmalloc-new-override)
The first half is only needed for the .so, and can perhaps be removed when we switch to monolithic binaries.
Sorry, something went wrong.
That should work. It won't override malloc/free, but will do new/delete.
The snmallocshim-static target will provide a malloc and free. You also need to set:
snmallocshim-static
SNMALLOC_STATIC_LIBRARY_PREFIX=""
As it defaults to SNMALLOC_STATIC_LIBRARY_PREFIX="sn_", and this defining sn_malloc, sn_free, ...
sn_malloc
sn_free
No branches or pull requests
Originally posted by @achamayou in #6746 (comment)
The text was updated successfully, but these errors were encountered: