This is the mail archive of the gcc-patches@gcc.gnu.org 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]

Re: [RFA] Only rebuild configure files in maintainer mode


Hi Joseph,

> > (*) Actually this cannot be safely done without further patches to 
> > build the yacc generated files (c-parse.c, c-parse.h, parse.c,
> > parse.h etc) in the build directory instead of the source
> > directory.  I have a separate patch that will implement this which
> > I plan to submit soon.

> This patch does, of course, adapt the release script at the same
> time so that people can still build releases from tarballs without
> Bison installed when building the compiler no longer puts the
> required files in the source directory?

Hmm, well I was wondering about this.  It would be much easier to just
insist on having bison present in order to build a release, but I
guess that some people will object.

The idea I am currently favoring is to have the built files be
present in the source directory, but if they need to be rebuilt they
get rebuilt into the build directory.  The exception to this would be
if the toolchain was configured with maintainer mode enabled, in which
case the files would be built into the source directory.  Thus
maintainers can regenerate the distributed files, but "normal" builders
can install a release on a read-only file system and everything should
work.  [I am assuming here that if a source file is present in both
the source directory and the build directory that the file in the
build directory will be used.  I have not checked this yet].

Cheers
        Nick


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