Issue 22809: Include/graminit.h and Python/graminit.c always rebuilt (breaks cross builds) (original) (raw)
changeset 92496:c2a53aa27cad () broke cross builds. (Now "make touch; make" always tries to rebuild Include/graminit.h and Python/graminit.c by running "pgen". But "pgen" is a host executable and won't run on the build machine during a cross-build.)
I think the problem is here, around Makefile.pre.in line 750. The dependency was on PGENSRCS and is now on PGEN. Will changing it back to PGENSRCS break something else?
@@ -745,15 +746,13 @@
(IOOBJS):(IO_OBJS): (IOOBJS):(IO_H)
-$(GRAMMAR_H): (GRAMMARINPUT)(GRAMMAR_INPUT) (GRAMMARINPUT)(PGENSRCS) +$(GRAMMAR_H): (GRAMMARINPUT)(GRAMMAR_INPUT) (GRAMMARINPUT)(PGEN)