Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 895ce14

Browse files
committed
Issue #22359: Remove incorrect uses of recursive make. Patch by Jonas Wagner.
1 parent 7c4093c commit 895ce14

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

Makefile.pre.in

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -686,11 +686,12 @@ Programs/_testembed: Programs/_testembed.o $(LIBRARY) $(LDLIBRARY) $(PY3LIBRARY)
686686
############################################################################
687687
# Importlib
688688

689+
Programs/_freeze_importlib.o: Programs/_freeze_importlib.c
690+
689691
Programs/_freeze_importlib: Programs/_freeze_importlib.o $(LIBRARY_OBJS_OMIT_FROZEN)
690692
$(LINKCC) $(PY_LDFLAGS) -o $@ Programs/_freeze_importlib.o $(LIBRARY_OBJS_OMIT_FROZEN) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
691693

692-
Python/importlib.h: $(srcdir)/Lib/importlib/_bootstrap.py Programs/_freeze_importlib.c
693-
$(MAKE) Programs/_freeze_importlib
694+
Python/importlib.h: $(srcdir)/Lib/importlib/_bootstrap.py Programs/_freeze_importlib
694695
./Programs/_freeze_importlib \
695696
$(srcdir)/Lib/importlib/_bootstrap.py Python/importlib.h
696697

@@ -752,15 +753,13 @@ Python/sysmodule.o: $(srcdir)/Python/sysmodule.c Makefile
752753

753754
$(IO_OBJS): $(IO_H)
754755

755-
$(GRAMMAR_H): $(GRAMMAR_INPUT) $(PGENSRCS)
756+
$(GRAMMAR_H): $(GRAMMAR_INPUT) $(PGEN)
756757
@$(MKDIR_P) Include
757-
$(MAKE) $(PGEN)
758758
$(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C)
759-
$(GRAMMAR_C): $(GRAMMAR_H) $(GRAMMAR_INPUT) $(PGENSRCS)
760-
$(MAKE) $(GRAMMAR_H)
759+
$(GRAMMAR_C): $(GRAMMAR_H)
761760
touch $(GRAMMAR_C)
762761

763-
$(PGEN): $(PGENOBJS)
762+
$(PGEN): $(PGENOBJS)
764763
$(CC) $(OPT) $(PY_LDFLAGS) $(PGENOBJS) $(LIBS) -o $(PGEN)
765764

766765
Parser/grammar.o: $(srcdir)/Parser/grammar.c \

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -936,6 +936,9 @@ IDLE
936936
Build
937937
-----
938938

939+
- Issue #22359: Remove incorrect uses of recursive make. Patch by Jonas
940+
Wagner.
941+
939942
- Issue #21958: Define HAVE_ROUND when building with Visual Studio 2013 and
940943
above. Patch by Zachary Turner.
941944

0 commit comments

Comments
 (0)