Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-09

How to recompile whole Lazarus with range check on?

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Alexander Klenin

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?

I tested with TAChart -- maybe there is something in TAChart package preventing this?

Alexander S. Klenin

Reply by email

Mattias Gaertner
to Alexander Klenin
Show quoted text 5 lines
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

I tested with TAChart -- maybe there is something in TAChart package preventing this?

Mattias

Reply by email

Alexander Klenin
to Mattias Gaertner
Mattias Gaertner wrote 10 lines
On Tue, 13 Sep 2011 04:13:26 +1100 Alexander Klenin 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? IIUC, some people always build Lazarus with -Cr I wonder how do they achieve it without hampering other projects?

Alexander S. Klenin

Reply by email

Mattias Gaertner
to Alexander Klenin
Show quoted text 18 lines
On Tue, Sep 13, 2011 at 08:03, Mattias Gaertner wrote: > On Tue, 13 Sep 2011 04:13:26 +1100 > Alexander Klenin 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

Reply by email