mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Issue #27229: Fix in-tree cross-build rule, by Xavier de Gaye
This commit is contained in:
parent
8f5798edfb
commit
9c2a8f97da
2 changed files with 8 additions and 2 deletions
|
@ -793,13 +793,16 @@ $(GRAMMAR_H): $(GRAMMAR_INPUT) $(PGEN)
|
||||||
if test "$(cross_compiling)" != "yes"; then \
|
if test "$(cross_compiling)" != "yes"; then \
|
||||||
$(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C); \
|
$(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C); \
|
||||||
else \
|
else \
|
||||||
cp $(srcdir)/Include/graminit.h $(GRAMMAR_H); \
|
# Avoid copying the file onto itself for an in-tree build \
|
||||||
|
cp $(srcdir)/Include/graminit.h $(GRAMMAR_H).tmp; \
|
||||||
|
mv $(GRAMMAR_H).tmp $(GRAMMAR_H); \
|
||||||
fi
|
fi
|
||||||
$(GRAMMAR_C): $(GRAMMAR_H)
|
$(GRAMMAR_C): $(GRAMMAR_H)
|
||||||
if test "$(cross_compiling)" != "yes"; then \
|
if test "$(cross_compiling)" != "yes"; then \
|
||||||
touch $(GRAMMAR_C); \
|
touch $(GRAMMAR_C); \
|
||||||
else \
|
else \
|
||||||
cp $(srcdir)/Python/graminit.c $(GRAMMAR_C); \
|
cp $(srcdir)/Python/graminit.c $(GRAMMAR_C).tmp; \
|
||||||
|
mv $(GRAMMAR_C).tmp $(GRAMMAR_C); \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$(PGEN): $(PGENOBJS)
|
$(PGEN): $(PGENOBJS)
|
||||||
|
|
|
@ -581,6 +581,9 @@ Build
|
||||||
source code anyway, and is still regenerated when doing a native build.
|
source code anyway, and is still regenerated when doing a native build.
|
||||||
Patch by Xavier de Gaye.
|
Patch by Xavier de Gaye.
|
||||||
|
|
||||||
|
- Issue #27229: Fix the cross-compiling pgen rule for in-tree builds. Patch
|
||||||
|
by Xavier de Gaye.
|
||||||
|
|
||||||
- Issue #21668: Link audioop, _datetime, _ctypes_test modules to libm,
|
- Issue #21668: Link audioop, _datetime, _ctypes_test modules to libm,
|
||||||
except on Mac OS X. Patch written by Xavier de Gaye.
|
except on Mac OS X. Patch written by Xavier de Gaye.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue