diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-07-28 01:28:27 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-07-28 01:28:27 (GMT) |
commit | eac67be948e972dc12b7b4abfa83b09becf6422c (patch) | |
tree | 0a6627d7d36fcb503c5330aec167280582390520 /Makefile.pre.in | |
parent | e33797b686d764014aeaf80d7b4cb24863d238d9 (diff) | |
download | cpython-eac67be948e972dc12b7b4abfa83b09becf6422c.zip cpython-eac67be948e972dc12b7b4abfa83b09becf6422c.tar.gz cpython-eac67be948e972dc12b7b4abfa83b09becf6422c.tar.bz2 |
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 369b330..d30e565 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -789,7 +789,7 @@ Python/sysmodule.o: $(srcdir)/Python/sysmodule.c Makefile $(IO_OBJS): $(IO_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 \ |