- Partial Rebuild
If the project implements proper compilation dependency DAG then you can get away with only recompiling the object files that your change affects.
- Multiple Compilation Process
Also assuming a proper compilation dependency DAG, you can compile using multiple processes. One job per core/cpu is the norm.
- Executable tests
You can create multiple executables for testing that only link particular object files.