I am using a library which uses a lot of it own related files and whenever I recompile all those units are always recompiled. Is adding the other additional files into a package the way to avoid this recompilation and the presence of lots of unrelated ppus and object files?
Mailing lists / lazarus / 2015-03
Is adding all the related files to a package the way to stop units proliferating in the output directory?
4 messages · 2 people · –
- MMattias Gaertner 2
- Vvfclists . 2
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
I am using a library which uses a lot of it own related files and whenever I recompile all those units are always recompiled.
What do you mean with "whenever I recompile"?
Compile (Ctrl-F9), Build (Shift-F9), Clean up and build, ... changing compiler options and build, ...
Is adding the other additional files into a package the way to avoid this recompilation and the presence of lots of unrelated ppus and object files?
What are "other additional files"?
Using packages can be used to reduce recompilations.
Mattias
Mattias Gaertner wrote 12 lines
Mainly Quick Compile, Run and Build
Show quoted text 9 lines
They are files in the uses section of the project's units, but there are a lot of them and are mostly exclusive dependencies of the projects main unit.
Using packages can be used to reduce recompilations.
Show quoted text 10 lines
Show quoted text 16 lines
Check if the -B option was passed to the compiler. Select in the Messages window the "Compile Project" message, right click, then About / About Compile Project.
The -B tells the compiler to recompile every source it can find.
When you compile a second time, there should be no -B and the compiler should only compile only the program file and no unit. Does it?
Show quoted text 10 lines
Ok. Sounds like normal units.
Mattias
