Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
bc82de08
Commit
bc82de08
authored
Jul 29, 2016
by
Martin Panter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #27641: Comment out regeneration rules when cross compiling
parent
692497a3
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
27 deletions
+14
-27
Makefile.pre.in
Makefile.pre.in
+4
-16
Misc/NEWS
Misc/NEWS
+2
-2
configure
configure
+4
-5
configure.ac
configure.ac
+4
-4
No files found.
Makefile.pre.in
View file @
bc82de08
...
@@ -200,7 +200,6 @@ UNICODE_OBJS= @UNICODE_OBJS@
...
@@ -200,7 +200,6 @@ UNICODE_OBJS= @UNICODE_OBJS@
PYTHON
=
python
$(EXE)
PYTHON
=
python
$(EXE)
BUILDPYTHON
=
python
$(BUILDEXE)
BUILDPYTHON
=
python
$(BUILDEXE)
cross_compiling
=
@cross_compiling@
PYTHON_FOR_BUILD
=
@PYTHON_FOR_BUILD@
PYTHON_FOR_BUILD
=
@PYTHON_FOR_BUILD@
_PYTHON_HOST_PLATFORM
=
@_PYTHON_HOST_PLATFORM@
_PYTHON_HOST_PLATFORM
=
@_PYTHON_HOST_PLATFORM@
HOST_GNU_TYPE
=
@host@
HOST_GNU_TYPE
=
@host@
...
@@ -680,22 +679,11 @@ Modules/grpmodule.o: $(srcdir)/Modules/grpmodule.c $(srcdir)/Modules/posixmodule
...
@@ -680,22 +679,11 @@ Modules/grpmodule.o: $(srcdir)/Modules/grpmodule.c $(srcdir)/Modules/posixmodule
Modules/pwdmodule.o
:
$(srcdir)/Modules/pwdmodule.c $(srcdir)/Modules/posixmodule.h
Modules/pwdmodule.o
:
$(srcdir)/Modules/pwdmodule.c $(srcdir)/Modules/posixmodule.h
$(GRAMMAR_H)
:
$(GRAMMAR_INPUT) @PGEN_DEPENDENCY@
$(GRAMMAR_H)
:
@GENERATED_COMMENT@ $(GRAMMAR_INPUT) $(PGEN)
@
$(MKDIR_P)
Include
@
$(MKDIR_P)
Include
# Avoid copying the file onto itself for an in-tree build
$(PGEN)
$(GRAMMAR_INPUT)
$(GRAMMAR_H)
$(GRAMMAR_C)
if
test
"
$(cross_compiling)
"
!=
"yes"
;
then
\
$(GRAMMAR_C)
:
@GENERATED_COMMENT@ $(GRAMMAR_H)
$(PGEN)
$(GRAMMAR_INPUT)
$(GRAMMAR_H)
$(GRAMMAR_C)
;
\
touch
$(GRAMMAR_C)
else
\
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)
.tmp
;
\
mv
$(GRAMMAR_C)
.tmp
$(GRAMMAR_C)
;
\
fi
$(PGEN)
:
$(PGENOBJS)
$(PGEN)
:
$(PGENOBJS)
$(CC)
$(OPT)
$(LDFLAGS)
$(PGENOBJS)
$(LIBS)
-o
$(PGEN)
$(CC)
$(OPT)
$(LDFLAGS)
$(PGENOBJS)
$(LIBS)
-o
$(PGEN)
...
...
Misc/NEWS
View file @
bc82de08
...
@@ -94,8 +94,8 @@ What's New in Python 2.7.12?
...
@@ -94,8 +94,8 @@ What's New in Python 2.7.12?
Build
Build
-----
-----
-
Issue
#
27
490
:
Do
not
build
pgen
when
cross
-
compiling
.
Patch
by
Thomas
-
Issue
#
27
641
:
The
configure
script
now
inserts
comments
into
the
makefile
Perl
.
to
prevent
the
pgen
executable
from
being
cross
-
compiled
.
-
Issue
#
26930
:
Update
Windows
builds
to
use
OpenSSL
1.0.2
h
.
-
Issue
#
26930
:
Update
Windows
builds
to
use
OpenSSL
1.0.2
h
.
...
...
configure
View file @
bc82de08
...
@@ -735,7 +735,7 @@ UNIVERSALSDK
...
@@ -735,7 +735,7 @@ UNIVERSALSDK
CONFIG_ARGS
CONFIG_ARGS
SOVERSION
SOVERSION
VERSION
VERSION
PGEN_DEPENDENCY
GENERATED_COMMENT
PYTHON_FOR_BUILD
PYTHON_FOR_BUILD
host_os
host_os
host_vendor
host_vendor
...
@@ -745,7 +745,6 @@ build_os
...
@@ -745,7 +745,6 @@ build_os
build_vendor
build_vendor
build_cpu
build_cpu
build
build
cross_compiling
target_alias
target_alias
host_alias
host_alias
build_alias
build_alias
...
@@ -2800,7 +2799,6 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
...
@@ -2800,7 +2799,6 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_config_headers
=
"
$ac_config_headers
pyconfig.h"
ac_config_headers
=
"
$ac_config_headers
pyconfig.h"
ac_aux_dir
=
ac_aux_dir
=
for
ac_dir
in
"
$srcdir
"
"
$srcdir
/.."
"
$srcdir
/../.."
;
do
for
ac_dir
in
"
$srcdir
"
"
$srcdir
/.."
"
$srcdir
/../.."
;
do
if
test
-f
"
$ac_dir
/install-sh"
;
then
if
test
-f
"
$ac_dir
/install-sh"
;
then
...
@@ -2925,12 +2923,13 @@ $as_echo_n "checking for python interpreter for cross build... " >&6; }
...
@@ -2925,12 +2923,13 @@ $as_echo_n "checking for python interpreter for cross build... " >&6; }
$as_echo
"
$interp
"
>
&6
;
}
$as_echo
"
$interp
"
>
&6
;
}
PYTHON_FOR_BUILD
=
'_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)$(srcdir)/Lib:$(srcdir)/Lib/$(PLATDIR) '
$interp
PYTHON_FOR_BUILD
=
'_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)$(srcdir)/Lib:$(srcdir)/Lib/$(PLATDIR) '
$interp
fi
fi
PGEN_DEPENDENCY
=
''
# Used to comment out stuff for rebuilding generated files
GENERATED_COMMENT
=
'#'
elif
test
"
$cross_compiling
"
=
maybe
;
then
elif
test
"
$cross_compiling
"
=
maybe
;
then
as_fn_error
$?
"Cross compiling required --host=HOST-TUPLE and --build=ARCH"
"
$LINENO
"
5
as_fn_error
$?
"Cross compiling required --host=HOST-TUPLE and --build=ARCH"
"
$LINENO
"
5
else
else
PYTHON_FOR_BUILD
=
'./$(BUILDPYTHON) -E'
PYTHON_FOR_BUILD
=
'./$(BUILDPYTHON) -E'
PGEN_DEPENDENCY
=
'$(PGEN)
'
GENERATED_COMMENT
=
'
'
fi
fi
...
...
configure.ac
View file @
bc82de08
...
@@ -12,7 +12,6 @@ AC_INIT(python, PYTHON_VERSION, http://bugs.python.org/)
...
@@ -12,7 +12,6 @@ AC_INIT(python, PYTHON_VERSION, http://bugs.python.org/)
AC_CONFIG_SRCDIR([Include/object.h])
AC_CONFIG_SRCDIR([Include/object.h])
AC_CONFIG_HEADER(pyconfig.h)
AC_CONFIG_HEADER(pyconfig.h)
AC_SUBST(cross_compiling)
AC_CANONICAL_HOST
AC_CANONICAL_HOST
AC_SUBST(build)
AC_SUBST(build)
AC_SUBST(host)
AC_SUBST(host)
...
@@ -36,15 +35,16 @@ if test "$cross_compiling" = yes; then
...
@@ -36,15 +35,16 @@ if test "$cross_compiling" = yes; then
AC_MSG_RESULT($interp)
AC_MSG_RESULT($interp)
PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)$(srcdir)/Lib:$(srcdir)/Lib/$(PLATDIR) '$interp
PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)$(srcdir)/Lib:$(srcdir)/Lib/$(PLATDIR) '$interp
fi
fi
PGEN_DEPENDENCY=''
# Used to comment out stuff for rebuilding generated files
GENERATED_COMMENT='#'
elif test "$cross_compiling" = maybe; then
elif test "$cross_compiling" = maybe; then
AC_MSG_ERROR([Cross compiling required --host=HOST-TUPLE and --build=ARCH])
AC_MSG_ERROR([Cross compiling required --host=HOST-TUPLE and --build=ARCH])
else
else
PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E'
PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E'
PGEN_DEPENDENCY='$(PGEN)
'
GENERATED_COMMENT='
'
fi
fi
AC_SUBST(PYTHON_FOR_BUILD)
AC_SUBST(PYTHON_FOR_BUILD)
AC_SUBST(
PGEN_DEPENDENCY
)
AC_SUBST(
GENERATED_COMMENT
)
dnl Ensure that if prefix is specified, it does not end in a slash. If
dnl Ensure that if prefix is specified, it does not end in a slash. If
dnl it does, we get path names containing '//' which is both ugly and
dnl it does, we get path names containing '//' which is both ugly and
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment