On Tue, 13 Sep 2011 12:39:54 +1100 Alexander Klenin <[email protected]> wrote:
> On Tue, Sep 13, 2011 at 08:03, Mattias Gaertner > <[email protected]> wrote: > > On Tue, 13 Sep 2011 04:13:26 +1100 > > Alexander Klenin <[email protected]> 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 -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
