[Lazarus] Another LCL=Package changes issue

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[Lazarus] Another LCL=Package changes issue

Joost van der Sluis
Hi all,

Now the LCL is automatically recompiled when some change has been
detected, what do I do if I change something in the FCL/RTL and want to
rebuild the LCL? And all packages in one go? (Checking which package
depend on the rtl/fcl change and compile them manually is too much work,
I discovered after a few days of brain-dead compilations)

Joost.


--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Another LCL=Package changes issue

Felipe Monteiro de Carvalho
That's a very common problem in software development and the answer is
always: make clean

In this particular case, open the LCL package and one of the options
is "Recompile clean"

And for your project "Build all" should do it

No idea if when you depend on a lot of packages if you will need to
rebuild each of them clean separately.

--
Felipe Monteiro de Carvalho

--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Another LCL=Package changes issue

Joost van der Sluis
On Thu, 2011-02-10 at 12:07 +0100, Felipe Monteiro de Carvalho wrote:
> That's a very common problem in software development and the answer is
> always: make clean
>
> In this particular case, open the LCL package and one of the options
> is "Recompile clean"

Yes, offcourse. But before this change I had a window in which I could
do this easily. Recompile the LCL/IDE and packages in one go.

> And for your project "Build all" should do it
>
> No idea if when you depend on a lot of packages if you will need to
> rebuild each of them clean separately.

Maybe I can try that. I recompiled all packages manually, but maybe that
after a forced LCL compile, all packages are compiled when I do 'build
all' on the project.

Joost.



--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Another LCL=Package changes issue

Mattias Gaertner
In reply to this post by Joost van der Sluis
On Thu, 10 Feb 2011 12:02:17 +0100
Joost van der Sluis <[hidden email]> wrote:

> Hi all,
>
> Now the LCL is automatically recompiled when some change has been
> detected, what do I do if I change something in the FCL/RTL and want to
> rebuild the LCL? And all packages in one go? (Checking which package
> depend on the rtl/fcl change and compile them manually is too much work,
> I discovered after a few days of brain-dead compilations)

The IDE only checks the dates of the fpc.cfg and the
compiler executable. This means installation of a new compiler is
recognized, but changes only to the ppu files are not recognized.

Checking that every time would take some time, especially under
windows. Since only experts do the above and experts don't want slow
down, I think it makes no sense to implement that.

If you compile the FCL/RTL via a script you could remove the file
lazarus/packager/units/cpu-os/FCL.compiled.
Because normally every package uses that one, the IDE will
recompile all packages.


Mattias

--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus