[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gawk] [PATCH] dependency for parallel make (bison)
From: |
arnold |
Subject: |
Re: [bug-gawk] [PATCH] dependency for parallel make (bison) |
Date: |
Tue, 12 Sep 2017 12:34:44 -0600 |
User-agent: |
Heirloom mailx 12.4 7/29/08 |
Hi.
> > command.c: command.y
> > $(YACC) -o $@ -p zz $<
> > sed 's/parse error/syntax error/g' < $@ > address@hidden && mv
> > address@hidden $@
>
> I'm agree, this is better.
I am using this change.
> > But I don't know whether it's safe to use "-o" on all of our platforms.
We already rely on the parser generator being Bison beause of the -p
option, so using -o is not awful. I am adding a note in the README.
> > With
> > -o, we could eliminate the bisonfix.awk hack for awkgram.y as well, but that
> > rule is a bit messier because of the shenanigans with y.tab.h.
Andy, please pull in a litle bit and then if you can come up
with such a fix, that'd be great.
> > And if we knew that we were dealing with GNU sed, we could write:
> >
> > command.c: command.y
> > $(YACC) -o $@ -p zz $<
> > sed -i 's/parse error/syntax error/g' $@
This is not reasonable though. A stock legacy Unix system won't
necessarily have it.
Thanks,
Arnold