getting the list of input files of a gcc command line

Vincent Lefevre vincent+gcc@vinc17.org
Thu Dec 6 16:37:00 GMT 2018


On 2018-12-06 12:58:35 +0100, Florian Weimer wrote:
> * Vincent Lefevre:
> 
> > The goal is to get a warning if I try to execute gcc while some input
> > file has not been saved in Emacs (Emacs provides the way to do this,
> > e.g. by creating a symbolic link .#tst.c when tst.c has not been
> > saved).
> 
> The makefile dependency generation options provide this information.

Good idea. This is even better. However, the parsing of the
command line would be more difficult, and in particular, it
may be difficult to decide what to do when such options are
already used (for a different purpose).

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



More information about the Gcc-help mailing list