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
3f9d49bd
Commit
3f9d49bd
authored
Oct 16, 2012
by
Trent Nelson
Browse files
Options
Browse Files
Download
Plain Diff
Merge heads.
parents
c89a2894
08f0fc20
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
6 deletions
+47
-6
Makefile.pre.in
Makefile.pre.in
+9
-6
configure
configure
+20
-0
configure.ac
configure.ac
+18
-0
No files found.
Makefile.pre.in
View file @
3f9d49bd
...
...
@@ -27,6 +27,8 @@ MODLIBS= _MODLIBS_
VERSION
=
@VERSION@
srcdir
=
@srcdir@
VPATH
=
@srcdir@
BUILDDIR
=
@BUILDDIR@
CC
=
@CC@
CXX
=
@CXX@
...
...
@@ -66,6 +68,7 @@ MAKESETUP= $(srcdir)/Modules/makesetup
# Compiler options
OPT
=
@OPT@
BASECFLAGS
=
@BASECFLAGS@
BASECPPFLAGS
=
@BASECPPFLAGS@
CONFIGURE_CFLAGS
=
@CFLAGS@
CONFIGURE_CPPFLAGS
=
@CPPFLAGS@
CONFIGURE_LDFLAGS
=
@LDFLAGS@
...
...
@@ -76,7 +79,7 @@ PY_CFLAGS= $(BASECFLAGS) $(OPT) $(CONFIGURE_CFLAGS) $(CFLAGS) $(EXTRA_CFLAGS)
# Both CPPFLAGS and LDFLAGS need to contain the shell's value for setup.py to
# be able to build extension modules using the directories specified in the
# environment variables
PY_CPPFLAGS
=
-I
.
-I
$(srcdir)
/Include
$(CONFIGURE_CPPFLAGS)
$(CPPFLAGS)
PY_CPPFLAGS
=
$(BASECPPFLAGS)
-I
.
-IInclude
-I
$(srcdir)
/Include
$(CONFIGURE_CPPFLAGS)
$(CPPFLAGS)
PY_LDFLAGS
=
$(CONFIGURE_LDFLAGS)
$(LDFLAGS)
NO_AS_NEEDED
=
@NO_AS_NEEDED@
LDLAST
=
@LDLAST@
...
...
@@ -310,7 +313,7 @@ ASDLGEN= @DISABLE_ASDLGEN@ $(srcdir)/Parser/asdl_c.py
# Python
OPCODETARGETS_H
=
\
$(srcdir)
/
Python/opcode_targets.h
Python/opcode_targets.h
OPCODETARGETGEN
=
\
$(srcdir)
/Python/makeopcodetargets.py
...
...
@@ -725,11 +728,11 @@ Python/ceval.o: $(OPCODETARGETS_H) $(srcdir)/Python/ceval_gil.h
Python/formatter_unicode.o
:
$(srcdir)/Python/formatter_unicode.c
\
$(BYTESTR_DEPS)
Python/frozen.o
:
$(srcdir)/
Python/importlib.h
Python/frozen.o
:
Python/importlib.h
Objects/typeobject.o
:
$(srcdir)/
Objects/typeslots.inc
$(srcdir)/
Objects/typeslots.inc
:
$(srcdir)/Include/typeslots.h $(srcdir)/Objects/typeslots.py
$(PYTHON)
$(srcdir)
/Objects/typeslots.py <
$(srcdir)
/Include/typeslots.h
>
$(srcdir)
/
Objects/typeslots.inc
Objects/typeobject.o
:
Objects/typeslots.inc
Objects/typeslots.inc
:
$(srcdir)/Include/typeslots.h $(srcdir)/Objects/typeslots.py
$(PYTHON)
$(srcdir)
/Objects/typeslots.py <
$(srcdir)
/Include/typeslots.h
>
Objects/typeslots.inc
############################################################################
# Header files
...
...
configure
View file @
3f9d49bd
...
...
@@ -714,6 +714,8 @@ HAS_HG
HGBRANCH
HGTAG
HGVERSION
BASECPPFLAGS
BUILDDIR
target_alias
host_alias
build_alias
...
...
@@ -2719,6 +2721,24 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
BUILDDIR
=
"
`
pwd
`
"
if
test
"
$srcdir
"
!=
"
$BUILDDIR
"
;
then
# If we're building out-of-tree, we need to make sure the following
# resources get picked up before their $srcdir counterparts.
# Objects/ -> typeslots.inc
# Include/ -> Python-ast.h, graminit.h
# Python/ -> importlib.h
# (A side effect of this is that these resources will automatically be
# regenerated when building out-of-tree, regardless of whether or not
# the $srcdir counterpart is up-to-date. This is an acceptable trade
# off.)
BASECPPFLAGS
=
"-IObjects -IInclude -IPython"
else
BASECPPFLAGS
=
""
fi
...
...
configure.ac
View file @
3f9d49bd
...
...
@@ -9,6 +9,24 @@ AC_PREREQ(2.65)
AC_INIT(python, PYTHON_VERSION, http://bugs.python.org/)
BUILDDIR="`pwd`"
AC_SUBST(BUILDDIR)
AC_SUBST(BASECPPFLAGS)
if test "$srcdir" != "$BUILDDIR"; then
# If we're building out-of-tree, we need to make sure the following
# resources get picked up before their $srcdir counterparts.
# Objects/ -> typeslots.inc
# Include/ -> Python-ast.h, graminit.h
# Python/ -> importlib.h
# (A side effect of this is that these resources will automatically be
# regenerated when building out-of-tree, regardless of whether or not
# the $srcdir counterpart is up-to-date. This is an acceptable trade
# off.)
BASECPPFLAGS="-IObjects -IInclude -IPython"
else
BASECPPFLAGS=""
fi
AC_SUBST(HGVERSION)
AC_SUBST(HGTAG)
AC_SUBST(HGBRANCH)
...
...
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