News for hackers. Stuff that matters.
Re:Redo: A recursive, general-purpose build system by Too on Wednesday December 29, 2021 @01:33AM (#29722507)
> Every C file depends on every header file in the repo.

So change in single header file always becomes a full build? Do you use pimpl or other tricks to avoid frequent changes to h-files, otherwise class members usually end up in the headers for simplicity and to avoid incomplete type problems on non-pointers unfortunately. Was this C or C++?

What's the difference between a clean rebuild and a scratch build?

Re:Redo: A recursive, general-purpose build system by thechao on Wednesday December 29, 2021 @12:11PM (#29726856)
Yes: touching any header file causes a full rebuild. Remember that ccache is "under the hood" doing memoization. So, a clean rebuild could still hit ccache, whereas a scratch build starts from an emoty ccache.