To do it right you need
- stable id's even when the source changes
- a separate output file dedicated to it so you hash that
Those aren't free, taking extra work to implement and possibly slow down the compiler