[Lazarus] DEBUG=1

Henry Vermaak henry.vermaak at gmail.com
Tue Jun 17 16:26:21 CEST 2008


2008/6/17 Vincent Snijders <vsnijders at quicknet.nl>:
>
> I hardly use the makefiles directly during development, but only the Build Lazarus
> tool in the IDE, so I cannot pass this DEBUG=1. What does it actually do? What are
> the corresponding compiler flags?
>

this is in the Makefile:

ifdef DEBUG
override FPCOPT+=-gl
override FPCOPTDEF+=DEBUG
endif

which causes -dDEBUG to be passed to the compiler.

this is in my fpc.cfg:

#IFDEF DEBUG
  -gl
  -Crtoi
  #WRITE Compiling Debug Version
#ENDIF

henry



More information about the Lazarus mailing list