Patch Makefile.in/Make-lang.in: create bison files atomically

Zack Weinberg zackw@Stanford.EDU
Fri Oct 13 18:27:00 GMT 2000


On Fri, Oct 13, 2000 at 10:48:49PM -0200, Alexandre Oliva wrote:
> On Oct 13, 2000, "Zack Weinberg" <zackw@stanford.edu> wrote:
> 
> > Wouldn't it be better to just create the parser files in the build
> > directory?
> 
> But what if srcdir == builddir?

No problem, unless you try to build two different configurations with
srcdir == builddir, in which case you're hosed before you even start.

> What if they're in different filesystems and `mv' won't move across
> filesystems?

Who said anything about 'mv'?  Use bison -o and drop the output files
straight into the build directory.  (byacc has -o too, these days.)

I know this works, because the red hat internal tree does it already.

zw


More information about the Gcc-patches mailing list