Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Is it possible to have make use file hashes instead of timestamps?


There is DJB's redo[1], which has some implementations. Also, one could probably modify make to use hashes. But personally I think that mtime is a nice compromise, as it's often a correct heuristic, and hashing files is not cheap, especially for big projects that'd have a performance penalty.

[1] https://cr.yp.to/redo.html


in theory, yes: https://www.cmcrossroads.com/article/rebuilding-when-files-c...

but I've never really tried to use such a hack




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: