[fpc-pascal] Building FPC with debug information
Henry Vermaak
henry.vermaak at gmail.com
Thu Oct 21 10:18:17 CEST 2010
On 21/10/10 07: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)?
The makefiles always pass RELEASE=1 (iirc). The later options on the
command line will override the earlier ones, so OPT gets put somewhere
at the end.
Henry
More information about the fpc-pascal
mailing list