That's easy to write, unless you have some really special requirements.
The main problem is if you want to automate a compiler invocation, since
there's no standard for that.
You can require the user to provide a script for that.
Cheers & hth.,
- Alf