[Lazarus] unit on relative path is not recompile

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Sep 30 17:49:32 CEST 2013


On Mon, 30 Sep 2013 18:26:41 +0300
patspiper <patspiper at gmail.com> wrote:

> On 30/09/13 18:13, Mattias Gaertner wrote:
> > On Mon, 30 Sep 2013 16:35:30 +0200
> > Dariusz Mazur <darekm at emadar.com> wrote:
> >
> >> On 2013-09-27 17:03, Mattias Gaertner wrote:
> >>> On Fri, 27 Sep 2013 16:59:04 +0200
> >>> Dariusz Mazur <darekm at emadar.com> wrote:
> >>>
> >>>> Hi
> >>>>
> >>>> I've noticed than lazarus (1.0.12) don't recompile units, which are
> >>>> include in program on relative path
> >>>> <code>
> >>>>     program p;
> >>>> uses
> >>>>      u1 in '..\..\test\u1.pas';
> >>>> begin
> >>>>     ...
> >>>> end;
> >>>> </code>
> >>> Is "..\..\test\u1.pas" listed in the project inspector?
> >> no,
> >> only mention u1 with name in main file.
> > Add it. Then the IDE will check the file date.
> 
> Does the IDE check for lfm and include files date?

lfm yes, include files must be added.

> I tried even to include the lfm with the project but the IDE neglected that.

The compiler ignores changes to lfm. That means if you only change the
lfm and not the pas, the IDE will call the compiler, but the compiler
does not check resources and will not update the lfm in the exe. You
have to change the pas file too.

Mattias




More information about the Lazarus mailing list