mirror of
https://github.com/notwa/rc
synced 2024-06-30 19:07:11 -07:00
don't use tcmalloc with asan
This commit is contained in:
parent
37583090f4
commit
57c483ec48
|
@ -54,10 +54,10 @@ compile() {
|
||||||
|
|
||||||
local nomalloc=(-fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free)
|
local nomalloc=(-fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free)
|
||||||
if [ -e /usr/bin/pprof ]; then
|
if [ -e /usr/bin/pprof ]; then
|
||||||
debug_flags+=(-ltcmalloc $nomalloc)
|
#debug_flags+=(-ltcmalloc $nomalloc)
|
||||||
dr_flags+=(-lprofiler $nomalloc)
|
dr_flags+=(-lprofiler $nomalloc)
|
||||||
elif [ -e /usr/bin/google-pprof ]; then
|
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)
|
dr_flags+=(-l:libtcmalloc_and_profiler.so.4 $nomalloc)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user