[fpc-pascal] Building FPC with debug information

Jonas Maebe jonas.maebe at elis.ugent.be
Thu Oct 21 15:24:45 CEST 2010


On 21 Oct 2010, at 08:24, Graeme Geldenhuys wrote:

> Op 2010-10-20 20:36, Jonas Maebe het geskryf:
>> 
>> On 20 Oct 2010, at 19:54, Brian Winfrey wrote:
>> 
>>>> make OPT="-O-" DEBUG=1 all
>>> 
>>> When I ran this I see that both -dDEBUG and -dRELEASE are passed on
>>> the fpc command line.  Is that correct?
>> 
>> Yes.
> 
> Mind explaining why? DEBUG and RELEASE is known to be opposites, so what do
> you end up with when both defines are specified, a debug build (debug info
> includes) or a release build (stripped version - no debug info)?

A debug build compiled for releasing (e.g., with all units compiled so that the compiler will not try recompiling them when it finds a source file with same name).


Jonas


More information about the fpc-pascal mailing list