I'm using a 3rd party cross-platform project builder which utilizes various compilers. This project builder always rebuilds the project fully and I'm trying to implement a "smart-rebuild" machanism.
I thought of running the preprocessor on each .cpp, crc the result and compare it against the CRC of the previous rebuild. If they differ, I'll mark the .cpp for compilation. If not, I'll use the previous object file.
Is this method secure enough? Is it probable that I'll get the same CRC when the code/headers are modified? Is there a certain CRC algorithm that can make it safer?