[llvm-dev] Incrementally compiling LLVM
Francesco Bertolaccini via llvm-dev
llvm-dev at lists.llvm.org
Sat Apr 17 05:43:08 PDT 2021
On 16/04/2021 16:57, Stephen Neuendorffer wrote:
> Good point. I don't think it's the same flow....sorry for the confusion.
>
> Steve
>
>
> On Thu, Apr 15, 2021, 11:36 AM Mehdi AMINI <joker.eph at gmail.com
> <mailto:joker.eph at gmail.com>> wrote:
>
> Is it the same flow?
> As far as I can tell you're not getting a build directory in order
> to do an incremental rebuild with modified sources, but instead
> getting the build artifacts in order to build a downstream project
> entirely.
>
> 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.
>
> --
> Mehdi
>
Thanks guys, I finally figured it out. Caching the whole git repo +
build artifacts was the missing piece.
Cheers!
Francesco
More information about the llvm-dev
mailing list