mirror of https://github.com/python/cpython
Issue #27229: Merge cross-compiling fix from 3.5
This commit is contained in:
commit
bb707607ea
|
@ -793,13 +793,16 @@ $(GRAMMAR_H): $(GRAMMAR_INPUT) $(PGEN)
|
|||
if test "$(cross_compiling)" != "yes"; then \
|
||||
$(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C); \
|
||||
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
|
||||
$(GRAMMAR_C): $(GRAMMAR_H)
|
||||
if test "$(cross_compiling)" != "yes"; then \
|
||||
touch $(GRAMMAR_C); \
|
||||
else \
|
||||
cp $(srcdir)/Python/graminit.c $(GRAMMAR_C); \
|
||||
cp $(srcdir)/Python/graminit.c $(GRAMMAR_C).tmp; \
|
||||
mv $(GRAMMAR_C).tmp $(GRAMMAR_C); \
|
||||
fi
|
||||
|
||||
$(PGEN): $(PGENOBJS)
|
||||
|
|
Loading…
Reference in New Issue