getting the list of input files of a gcc command line
Rena
hyperhacker@gmail.com
Wed Dec 5 22:37:00 GMT 2018
On Wed, Dec 5, 2018 at 11:44 AM Vincent Lefevre <vincent+gcc@vinc17.org> wrote:
>
> I would like to write a gcc wrapper and get the list of input files
> of the gcc command line before executing gcc. As a heuristic, I could
> get all the arguments with some extension like .c and .h, but is
> there a more reliable way?
>
> 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).
>
> --
> 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)
Perhaps you can do it the other way around: make a script/macro that
saves all open files, then runs gcc.
--
Sent from my Game Boy.
More information about the Gcc-help
mailing list