Try to avoid rebuilding everything every time there is a change?

0 views
Skip to first unread message

ed

unread,
Nov 10, 2009, 6:59:14 AM11/10/09
to Ledger
I just did an acprep update and although only 1 file (mask.h) had
changed it is now embarking on what seems like a complete
recompilation of ledger. Now mask.h may be included by everything (but
a quick grep shows it being included by 3 files in src/) but it seems
that every time git pulls in some new files that everything gets
rebuilt.

On my powerpc lines like
CXX libledger_report_la-output.lo
take a long time so I assume lots of recompilation is going on under
the covers.

A cursory inspection of the makefiles gives the impression that all
source files depend on every header file.

Any chance of tuning the dependencies to skip redundant activity? I'm
happy to try and suggest some specific improvements if you'd like.

John Wiegley

unread,
Nov 10, 2009, 6:41:55 PM11/10/09
to ledge...@googlegroups.com
On Nov 10, 2009, at 6:59 AM, ed wrote:

> A cursory inspection of the makefiles gives the impression that all
> source files depend on every header file.
>
> Any chance of tuning the dependencies to skip redundant activity? I'm
> happy to try and suggest some specific improvements if you'd like.

Actually, I've done quite a bit of work reducing dependencies as much
as possible. It just so happens that mask.h *is* needed by almost
everything, because it is included by value.h.

John

Reply all
Reply to author
Forward
0 new messages