summaryrefslogtreecommitdiff
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-07-28 01:28:27 +0000
committerMartin Panter <vadmium+py@gmail.com>2016-07-28 01:28:27 +0000
commit801110b30319a8ab1f8f29eedbac3798b03afb55 (patch)
tree9ee01eba387e8d92656fccfb6db4780bce5a12d2 /Makefile.pre.in
parent2e1a34025cde19bddf12a2eac8fedb6afcca8339 (diff)
downloadcpython-git-801110b30319a8ab1f8f29eedbac3798b03afb55.tar.gz
Issue #27490: Do not build pgen when cross-compiling
The dependendency on the $(PGEN) variable must only be set when not cross-compiling. When cross-compiling, $(PGEN) will not be used, so no need to build it. Patch by Thomas Perl.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r--Makefile.pre.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index dffc0b9973..ccfdd59952 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -680,7 +680,7 @@ Modules/grpmodule.o: $(srcdir)/Modules/grpmodule.c $(srcdir)/Modules/posixmodule
Modules/pwdmodule.o: $(srcdir)/Modules/pwdmodule.c $(srcdir)/Modules/posixmodule.h
-$(GRAMMAR_H): $(GRAMMAR_INPUT) $(PGEN)
+$(GRAMMAR_H): $(GRAMMAR_INPUT) @PGEN_DEPENDENCY@
@$(MKDIR_P) Include
# Avoid copying the file onto itself for an in-tree build
if test "$(cross_compiling)" != "yes"; then \