File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -793,13 +793,16 @@ $(GRAMMAR_H): $(GRAMMAR_INPUT) $(PGEN)
793793 if test "$(cross_compiling)" != "yes"; then \
794794 $(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C); \
795795 else \
796- cp $(srcdir)/Include/graminit.h $(GRAMMAR_H); \
796+ # Avoid copying the file onto itself for an in-tree build \
797+ cp $(srcdir)/Include/graminit.h $(GRAMMAR_H).tmp; \
798+ mv $(GRAMMAR_H).tmp $(GRAMMAR_H); \
797799 fi
798800$(GRAMMAR_C): $(GRAMMAR_H)
799801 if test "$(cross_compiling)" != "yes"; then \
800802 touch $(GRAMMAR_C); \
801803 else \
802- cp $(srcdir)/Python/graminit.c $(GRAMMAR_C); \
804+ cp $(srcdir)/Python/graminit.c $(GRAMMAR_C).tmp; \
805+ mv $(GRAMMAR_C).tmp $(GRAMMAR_C); \
803806 fi
804807
805808$(PGEN): $(PGENOBJS)
Original file line number Diff line number Diff line change @@ -137,6 +137,9 @@ Windows
137137Build
138138-----
139139
140+ - Issue #27229: Fix the cross-compiling pgen rule for in-tree builds. Patch
141+ by Xavier de Gaye.
142+
140143- Issue #26930: Update OS X 10.5+ 32-bit-only installer to build
141144 and link with OpenSSL 1.0.2h.
142145
You can’t perform that action at this time.
0 commit comments