[Lazarus] How to recompile whole Lazarus with range check on?

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Sep 13 10:41:55 CEST 2011


On Tue, 13 Sep 2011 12:39:54 +1100
Alexander Klenin <klenin at gmail.com> wrote:

> On Tue, Sep 13, 2011 at 08:03, Mattias Gaertner
> <nc-gaertnma at netcologne.de> wrote:
> > On Tue, 13 Sep 2011 04:13:26 +1100
> > Alexander Klenin <klenin at gmail.com> wrote:
> >
> >> The obvious method seems to add "-Cr" to the options
> >> in the "Configure build profile" dialog.
> >> However, it does not seem to affect packages,
> >> which are still compiled without range check
> >> Is there ane method to turn the range check globally?
> >
> > fpc.cfg
> 
> If you mean adding @lazfpc.cfg to options -- I tried it,
> it did not work.
> If you mean editing global fpc.cfg, then building,
> then editing it back -- this seems too cumbersome.
> Is this really the only way?

There are other ways with macros. But they all need some initial setup
work, before they become less cumbersome.

> IIUC, some people always build Lazarus with -Cr
> I wonder how do they achieve it without hampering other projects?

They don't. From time to time there are bug reports that something does
not work because the reporter enabled -Cr or similar flags.

Mattias





More information about the Lazarus mailing list