Bigcheese wrote:

> > but this is needed to also invalidate the scanning PCMs.
> 
> Can the compiler serialize enough information into scanning PCMs such that it 
> can detect invalidation on its own, without build system intervention?

This is what I tried first, but it's too slow, and doesn't really solve the 
problem because the build system still doesn't know that tasks need to be 
invalidated.

The performance overhead of doing this in the scanner was ~13% on an LLVM scan. 
Caching directory listings reduced this down to a few %, but we're concerned 
that this will lead to similar issues as negative stat caching when the 
filesystem is modified during the build. We could very selectively cache the 
directory check, but it doesn't solve the build system needing to know about it 
too.

https://github.com/llvm/llvm-project/pull/222202
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to