mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
Add Makefile option to use the DMALLOC (debug malloc) library.
I didn't have much success in finding bugs using it, but it works out-of-the-box on my setup, so it may be useful in the future. git-svn-id: https://svn.eduke32.com/eduke32@2254 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
300fee62da
commit
a57b566c0b
2 changed files with 7 additions and 0 deletions
|
@ -44,6 +44,7 @@ RELEASE?=1
|
|||
DEBUGANYWAY?=0
|
||||
KRANDDEBUG?=0
|
||||
EFENCE?=0
|
||||
DMALLOC?=0
|
||||
OPTLEVEL?=2
|
||||
PROFILER?=0
|
||||
MUDFLAP?=0
|
||||
|
@ -145,6 +146,10 @@ ifneq (0,$(EFENCE))
|
|||
LIBS+= -lefence
|
||||
BASECFLAGS+= -DEFENCE
|
||||
endif
|
||||
ifneq (0,$(DMALLOC))
|
||||
LIBS+= -ldmalloc
|
||||
BASECFLAGS+= -DDMALLOC
|
||||
endif
|
||||
|
||||
BASECXXFLAGS= -fno-exceptions -fno-rtti
|
||||
BASEASFLAGS=-s #-g
|
||||
|
|
|
@ -93,6 +93,8 @@
|
|||
|
||||
#ifdef EFENCE
|
||||
# include <efence.h>
|
||||
#elif defined DMALLOC
|
||||
# include <dmalloc.h>
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
|
|
Loading…
Reference in a new issue