steven_wu added a comment.

Can you clarify what do you mean by 'waste time optimizing a file that finally 
hit the object file cache'?

No matter what build system to use, it should figure out during an incremental 
build that the input wasn't changed and not rerun the clang invocation on the 
same input. If you are looking to achieve what `ccache` is doing, I don't think 
implement in the compiler is a good option. That should really be done on the 
build system level. This solution is strictly worse than `ccache` because 
`ccache` is able to fetch the optimized bitcode without even running clang 
frontend and ir-gen.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D69327/new/

https://reviews.llvm.org/D69327



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to