On 06.12.21 07:51, Tom Lane wrote:
TBH, I am not convinced that the complained-of case is enough of a problem to justify any change in our build rules, even if there weren't any semantic issues. If you are worried about build times, you should be using ccache, and IME builds using ccache are not terribly impacted by file timestamp changes.
I have never heard of a dependency-based build system taking into account the timestamps of files outside of the source (or build) tree. It does make sense to some degree, but it seems very unusual, and basically nothing works like that. I'm also not sure how packaging systems preserve file timestamps. Maybe it's a thing now, but I'd like to see a more comprehensive analysis before we commit to this.