option + argument in 1 or 2 words (was: getting the list of input files of a gcc command line)
Vincent Lefevre
vincent+gcc@vinc17.org
Thu Dec 6 16:47:00 GMT 2018
On 2018-12-06 09:54:00 -0600, Segher Boessenkool wrote:
> On Thu, Dec 06, 2018 at 03:26:20AM +0100, Vincent Lefevre wrote:
> > However, I probably wouldn't miss any input file, because all of them
> > are actually full arguments (i.e. nothing like -Idir for files). If
> > the wrapper considers other files like in "-o that.o", this is not an
> > issue, because it is unlikely that such files have been opened in a
> > text editor, and directories are not an issue either since one can
> > easily skip them.
>
> It won't miss any input files from people who didn't write weird command
> lines. But, for example, you can do "gcc a.c -includea.h" (note no space
> after the -include), and that works.
Isn't this a bug? I thought that this was allowed only with options
with a single letter, like -I.
BTW, the man page is not consistent, e.g.
-I dir
but
-Ldir
and even both:
-llibrary
-l library
--
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