[Lazarus] LCL not in build profiles ?

Mattias Gaertner nc-gaertnma at netcologne.de
Mon May 23 18:31:03 CEST 2011


On Mon, 23 May 2011 16:05:24 +0200 (CEST)
michael.vancanneyt at wisa.be wrote:

> Hi,
> 
> Is there a reason why the LCL is no longer part of the items in the build
> profiles ?

The LCL is now a normal package. No need for a special dialog.

 
> I'd like to have a build profile where I tell the IDE to recompile the
> FCL/LCLBase/LCL packages as part of the build process.
> 
> As it is now, I must manually recompile clean FCL/LCLBase/LCL before I can
> rebuild lazarus. (after e.g. the FCL or RTL has changed)

Yes, that is unpleasant.

The IDE does not check on every compile the near 1000 units of FPC, 
because that would be very slow and these units change seldom.
I will implement a similar caching as the compiler uses. Hopefully
this is fast enough. Till then you can use the workarounds:

a) Open package FCL and click compile. Because almost all packages
depend on that package the others will be recompiled automatically when
needed. 

b) Create an external tool (under Tools / Options) to delete the file
$(LazarusDir)/packager/units/$(TargetCPU)-$(TargetOS)/FCL.compiled
This will invalidate the package FCL. Same effect as above, but you can
define a shortcut.


Mattias




More information about the Lazarus mailing list