mimalloc
mimalloc copied to clipboard
Need `-fno-builtin-calloc`, etc. when statically overriding? When compiling `static.c`?
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?