Now also uses CHECK_MALLOC to enable memory checking instead of MALLOC_DEBUG

directly.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3529 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2003-06-15 20:27:53 +00:00
parent e5c72c1505
commit 659b432cab

View File

@ -5,11 +5,10 @@ SubDirHdrs $(OBOS_TOP) src add-ons kernel file_systems bfs ;
{
# set MALLOC_DEBUG to something when doing tests against memory corruption
# (although this has the downside that "jam" is also debugged...)
# set CHECK_MALLOC to something when doing tests against memory corruption
local malloc_debug_defines ;
local malloc_debug_flags ;
if $(MALLOC_DEBUG) {
if $(CHECK_MALLOC) {
malloc_debug_defines = _NO_INLINE_ASM ;
malloc_debug_flags = -fcheck-memory-usage ;
}