1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-06-25 16:57:12 -07:00

don't use tcmalloc with asan

This commit is contained in:
Connor Olding 2017-05-03 08:45:38 +00:00
parent 37583090f4
commit 57c483ec48

View File

@ -54,10 +54,10 @@ compile() {
local nomalloc=(-fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free)
if [ -e /usr/bin/pprof ]; then
debug_flags+=(-ltcmalloc $nomalloc)
#debug_flags+=(-ltcmalloc $nomalloc)
dr_flags+=(-lprofiler $nomalloc)
elif [ -e /usr/bin/google-pprof ]; then
debug_flags+=(-l:libtcmalloc.so.4 $nomalloc)
#debug_flags+=(-l:libtcmalloc.so.4 $nomalloc)
dr_flags+=(-l:libtcmalloc_and_profiler.so.4 $nomalloc)
fi