[Lazarus] suggestion for lazbuild
Mehmet Erol Sanliturk
m.e.sanliturk at gmail.com
Tue Mar 17 18:29:11 CET 2015
On Tue, Mar 17, 2015 at 9:36 AM, Henry Vermaak <henry.vermaak at gmail.com>
wrote:
> On Tue, Mar 17, 2015 at 06:03:15PM +0200, FreeMan wrote:
> > make -s clean .......
> > this my compiler make command line.
>
> Eh? You're using lazbuild, why are you talking about make?
>
> If you are building lazarus with lazbuild, you can add compiler options,
> under Tools->Configure "Build Lazarus", see "Options". Add the options
> for the build mode that you're using.
>
> Henry
>
> --
> _______________________________________________
>
There is an important problem in Lazarus compilations :
Assume some units only include source files in their interface parts having
record types ( i.e. , there is no any declaration statement within unit
source and no any entries in their implementation parts ) .
Other units include source files containing procedures and use type
declaration units .
If a modification is performed in one of the procedure sources , Lazarus is
detecting it and compiling that unit .
BUT
If a new record element is added to one of the records , it is NOT
detecting that change and it is using the old compiled .ppu and .o for
this type definition source file included unit with
a subsequent error message that the newly added element is NOT defined in
the respective record .
I am using a batch or shell script file to erase all of the .ppu and .o
files before starting the compilation .
Selecting "Build" from Lazarus "Run" menu is starting to build Lazarus
itself which is NOT possible because Lazarus is owned by the "root" .
Using -B option seems that it is NOT effective when there are existing .ppu
and .o files .
Then the only way is to "clean" existing .ppu or .o files in a selected way
.
I do not know why
make -s clean
is used , but implication is that deletion of existing .ppu and .o files
are required before starting to compilation .
Thank you very much .
Mehmet Erol Sanliturk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20150317/4f305b69/attachment-0003.html>
More information about the Lazarus
mailing list