[llvm-dev] Incrementally compiling LLVM
Francesco Bertolaccini via llvm-dev
llvm-dev at lists.llvm.org
Fri Apr 16 00:03:55 PDT 2021
On 15/04/2021 20:36, Mehdi AMINI wrote:
> The only way I can see incremental compilation to work would be to get
> the entire source tree from the cache alongside with the build tree, and
> then run `git fetch && git checkout <rev>`. This would mark only the
> source file changed by git during the checkout.
> Otherwise a fresh `git clone` will have the source files modified data
> as the time of the checkout, so more recent than the cached build dir.
>
Thanks, this seems to be the crucial piece of info I was missing. I was
under the impression that something like the hashes of the files were
taken into account, not the last edit time. I'll experiment with this.
Francesco
More information about the llvm-dev
mailing list