[Lazarus] Runtime package (manual compilation only) forced to re-compile by a design time dependant package?

Mattias Gaertner nc-gaertnma at netcologne.de
Sun Apr 14 00:24:54 CEST 2013


On Sat, 13 Apr 2013 22:27:11 +0300
patspiper <patspiper at gmail.com> wrote:

>[...]
> >> In what needs building (with the design package selected), the 
> >> runtime package is marked as No build needed. Nevertheless, compiling 
> >> the design time package tries to compile the runtime units.
> > It turned out that the design time package had a other units path that 
> > included one unit of the runtime package. I know this is a bad 
> > practice, but does it fully explain the observed behaviour?
> I realise now why they shared the same path, but I am not sure if this 
> is right or wrong. The registration unit of the design time package is 
> in the same folder with the runtime units. Should it be placed in a 
> separate folder?

Yes.
Packages should not share sources (.pas files). Otherwise the
compiler will happily recompile them.
If you must share sources, you should add -Ur.

Mattias




More information about the Lazarus mailing list