Commit 907229af authored by Martin v. Löwis's avatar Martin v. Löwis

Don't run pgen twice when using make -j.

parent d17f2197
...@@ -561,9 +561,12 @@ Modules/python.o: $(srcdir)/Modules/python.c ...@@ -561,9 +561,12 @@ Modules/python.o: $(srcdir)/Modules/python.c
$(IO_OBJS): $(IO_H) $(IO_OBJS): $(IO_H)
$(GRAMMAR_H) $(GRAMMAR_C): $(PGEN) $(GRAMMAR_INPUT) # Use a stamp file to prevent make -j invoking pgen twice
$(GRAMMAR_H) $(GRAMMAR_C): Parser/pgen.stamp
Parser/pgen.stamp: $(PGEN) $(GRAMMAR_INPUT)
-@$(INSTALL) -d Include -@$(INSTALL) -d Include
-$(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C) -$(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C)
-touch Parser/pgen.stamp
$(PGEN): $(PGENOBJS) $(PGEN): $(PGENOBJS)
$(CC) $(OPT) $(PY_LDFLAGS) $(PGENOBJS) $(LIBS) -o $(PGEN) $(CC) $(OPT) $(PY_LDFLAGS) $(PGENOBJS) $(LIBS) -o $(PGEN)
...@@ -1197,7 +1200,7 @@ profile-removal: ...@@ -1197,7 +1200,7 @@ profile-removal:
clobber: clean profile-removal clobber: clean profile-removal
-rm -f $(BUILDPYTHON) $(PGEN) $(LIBRARY) $(LDLIBRARY) $(DLLLIBRARY) \ -rm -f $(BUILDPYTHON) $(PGEN) $(LIBRARY) $(LDLIBRARY) $(DLLLIBRARY) \
tags TAGS \ tags TAGS Parser/pgen.stamp \
config.cache config.log pyconfig.h Modules/config.c config.cache config.log pyconfig.h Modules/config.c
-rm -rf build platform -rm -rf build platform
-rm -rf $(PYTHONFRAMEWORKDIR) -rm -rf $(PYTHONFRAMEWORKDIR)
......
...@@ -215,6 +215,11 @@ Tests ...@@ -215,6 +215,11 @@ Tests
- Issue #8687: provide a test suite for sched.py module. - Issue #8687: provide a test suite for sched.py module.
Build
-----
- Don't run pgen twice when using make -j.
What's New in Python 3.2 Alpha 1? What's New in Python 3.2 Alpha 1?
================================= =================================
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment