◐ Shell
clean mode source ↗

Issue 22809: Include/graminit.h and Python/graminit.c always rebuilt (breaks cross builds)

changeset 92496:c2a53aa27cad (issue22359) 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 @@
 
 $(IO_OBJS): $(IO_H)
 
-$(GRAMMAR_H): $(GRAMMAR_INPUT) $(PGENSRCS)
+$(GRAMMAR_H): $(GRAMMAR_INPUT) $(PGEN)