Sign in Join

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

Mailing lists / lazarus / 2008-03

All units always being recompiled

12 messages · 6 people · –

Reply by email Subscribe to this list Your subscription

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

Tobias Giesen

Hello,

I have a strange problem. I am porting a new project from Delphi/Windows to Lazarus/Mac OS. This project doesn't compile completely yet. So I am always hitting F9 to get a list of errors and fix them. But each time, Lazarus/FPC recompiles all units in the project, even those that have already been compiled successfully without errors.

Other projects compile normally, i.e. only units with changes and those that depend on them.

Any ideas what might cause all units to be recompiled each time I hit F9?

Thanks.

Cheers,
Tobias

Reply by email

Henry Vermaak
to Tobias Giesen: I have a strange problem. I am porting a new project from Delphi/Windows to Lazarus/Mac…
Tobias Giesen wrote 14 lines
Hello, I have a strange problem. I am porting a new project from Delphi/Windows to Lazarus/Mac OS. This project doesn't compile completely yet. So I am always hitting F9 to get a list of errors and fix them. But each time, Lazarus/FPC recompiles all units in the project, even those that have already been compiled successfully without errors. Other projects compile normally, i.e. only units with changes and those that depend on them. Any ideas what might cause all units to be recompiled each time I hit F9?

project->project options->miscellaneous tab->always build (even when nothing has changed) checkbox

henry

Reply by email

Graeme Geldenhuys
to Felipe Monteiro de Carvalho: Project --> Project Options --> Miscelaneus --> Always Build (even if nothing changed)…
Felipe Monteiro de Carvalho wrote
Project --> Project Options --> Miscelaneus --> Always Build (even if nothing changed)

Is there such a option for packages as well? I many times I changes things in include files and clicking Compile on a package doesn't detect the change. I have to always remember to click 'More | Recompile clean' which is a bit annoying.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Graeme Geldenhuys
to Graeme Geldenhuys
Graeme Geldenhuys wrote 10 lines
On 05/03/2008, Felipe Monteiro de Carvalho wrote: > Project --> Project Options --> Miscelaneus --> Always Build (even if > nothing changed) Is there such a option for packages as well? I many times I changes things in include files and clicking Compile on a package doesn't detect the change. I have to always remember to click 'More | Recompile clean' which is a bit annoying.

Ok, not sure why I haven't thought of this before!!! :-) But simply adding the '-B' compiler parameter in the '<package> | Compiler Options | Other' fixes the issue.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Mattias Gaertner
to Graeme Geldenhuys: On 05/03/2008, Felipe Monteiro de Carvalho Is there such a option for packages as well? …
Show quoted text 10 lines
On 05/03/2008, Felipe Monteiro de Carvalho wrote: > Project --> Project Options --> Miscelaneus --> Always Build (even > if nothing changed) Is there such a option for packages as well? I many times I changes things in include files and clicking Compile on a package doesn't detect the change. I have to always remember to click 'More | Recompile clean' which is a bit annoying.

Did you add the include files to the package?

Mattias

Reply by email

Graeme Geldenhuys
to Mattias Gaertner
Mattias Gaertner wrote 7 lines
> Is there such a option for packages as well? I many times I changes > things in include files and clicking Compile on a package doesn't > detect the change. I have to always remember to click 'More | > Recompile clean' which is a bit annoying. Did you add the include files to the package?

No. Am I supposed to? Some of these packages have been around for two years, so don't know if that's a new feature of Lazarus?

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Mattias Gaertner
to Graeme Geldenhuys
Show quoted text 11 lines
On 06/03/2008, Mattias Gaertner wrote: > > Is there such a option for packages as well? I many times I > > changes things in include files and clicking Compile on a > > package doesn't detect the change. I have to always remember to > > click 'More | Recompile clean' which is a bit annoying. > > > Did you add the include files to the package? No. Am I supposed to? Some of these packages have been around for two years, so don't know if that's a new feature of Lazarus?

The IDE checks if any of the files of the package are newer than the .compiled file and if yes, it starts the compiler. So, if the include file is not in the package, the IDE assumes, that nothing relevant has changed and will not auto compile your package. That's a pretty old feature.

Mattias

Reply by email