This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gtyp-input.list should contain absolute paths.

Andreas Schwab wrote:
Basile STARYNKEVITCH <> writes:

Andreas Schwab wrote:
Perhaps gengtype should be modified to always treat the files in
gtyp-input.list relative to location of that file.
I probably misunderstood your sentence. I parsed "that file" as referring to gengtype, but you perhaps meant to refer to gtype-input.list

I still don't understand what patch to gengtype are you precisely thinking of.

If we did that, we could not run gengtype in plugin mode as easily as
[Makefile syntax inside our plugin tree]

$(GCCBUILD)/gcc/build/gengtype -p $(GCCSOURCE)/gcc $(GCCBUILD)/gcc/gtype-input.list plugin.c

because then the plugin.c would be expected to be inside the
$(GCCBUILD)/gcc or $(GCCBUILD)/gcc/build/ directory, which it is not.

It wouldn't. Any additional file specified on the command line would
still be found relative to the current directory.

[my misunderstanding about "that file"]


PS BTW we also need gengtype to output gtype-desc.h in plugin mode.

email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]