mimalloc icon indicating copy to clipboard operation
mimalloc copied to clipboard

Need `-fno-builtin-calloc`, etc. when statically overriding? When compiling `static.c`?

Open jberryman opened this issue 2 years ago • 0 comments

In e.g. https://github.com/microsoft/mimalloc/commit/c56be7ac5ae682733ddeb14288fd432a68951d5c we have this when overriding mimalloc:

list(APPEND mi_cflags -fno-builtin-malloc)

Should this also have -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free as is the suggestion for tcmalloc? https://github.com/open-iscsi/tcmu-runner/issues/561

Or is it important to compile and C code we'll link against with those flags?

jberryman avatar Jul 18 '23 16:07 jberryman