Taco is an experimental Emacs package to help determine default compilation commands based on the files present in a project.
Feedback is welcome, but it's a bit early for code contributions. Thanks for the thought, though! (Hopefully this will change after not too long.)