diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-07-28 01:28:27 +0000 |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-07-28 01:28:27 +0000 |
commit | 801110b30319a8ab1f8f29eedbac3798b03afb55 (patch) | |
tree | 9ee01eba387e8d92656fccfb6db4780bce5a12d2 /Makefile.pre.in | |
parent | 2e1a34025cde19bddf12a2eac8fedb6afcca8339 (diff) | |
download | cpython-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.in | 2 |
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 \ |