[Lazarus] Failure to recompile with a different define
Giuliano Colla
giuliano.colla at fastwebnet.it
Thu Sep 1 13:58:10 CEST 2016
Il 01/09/2016 13:12, Mattias Gaertner ha scritto:
> ppus do not include the defines, so a simple compile won't rebuild ppu
> files. That's by design.
>
> How do you share units?
> If you do it manually by adding unit paths to the Compiler Options then
> you have to clean up manually.
> If you use Lazarus packages, then Lazarus will detect the changes and
> pass the -B automatically.
Using a package isn't a very intuitive solution, when *all* the units
belong to the project.
A simple option could be to change the default unit path proposed by
Lazarus: in place of lib/$(TargetCPU)-$(TargetOS), make it
lib/$(ProjectName)/$(TargetCPU)-$(TargetOS)
this could make it much easier to have more than one project in the same
directory, without any risk of mix-ups.
Just my 2c
Giuliano
More information about the Lazarus
mailing list