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
0de92859
Commit
0de92859
authored
Nov 08, 2017
by
xdegaye
Committed by
GitHub
Nov 08, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-31934: Abort when building out of a not clean source tree (GH-4255)
parent
b5d9e081
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
4 deletions
+15
-4
Makefile.pre.in
Makefile.pre.in
+14
-4
Misc/NEWS.d/next/Build/2017-11-03-15-17-50.bpo-31934.8bUlpv.rst
...EWS.d/next/Build/2017-11-03-15-17-50.bpo-31934.8bUlpv.rst
+1
-0
No files found.
Makefile.pre.in
View file @
0de92859
...
@@ -440,7 +440,17 @@ DTRACE_DEPS = \
...
@@ -440,7 +440,17 @@ DTRACE_DEPS = \
# Default target
# Default target
all
:
@DEF_MAKE_ALL_RULE@
all
:
@DEF_MAKE_ALL_RULE@
build_all
:
$(BUILDPYTHON) oldsharedmods sharedmods gdbhooks Programs/_testembed python-config
build_all
:
check-clean-src $(BUILDPYTHON) oldsharedmods sharedmods gdbhooks
\
Programs/_testembed python-config
# Check that the source is clean when building out of source.
check-clean-src
:
@
if
test
-n
"
$(VPATH)
"
-a
-f
"
$(srcdir)
/Programs/python.o"
;
then
\
echo
"Error: The source directory (
$(srcdir)
) is not clean"
;
\
echo
"Building Python out of the source tree (in
$(abs_builddir)
) requires a clean source tree (
$(abs_srcdir)
)"
;
\
echo
"Try to run: make -C
\"
$(srcdir)
\"
clean"
;
\
exit
1
;
\
fi
# Profile generation build must start from a clean tree.
# Profile generation build must start from a clean tree.
profile-clean-stamp
:
profile-clean-stamp
:
...
@@ -542,7 +552,7 @@ coverage-report: regen-grammar regen-importlib
...
@@ -542,7 +552,7 @@ coverage-report: regen-grammar regen-importlib
# Run "Argument Clinic" over all source files
# Run "Argument Clinic" over all source files
# (depends on python having already been built)
# (depends on python having already been built)
.PHONY
=
clinic
.PHONY
=
clinic
clinic
:
$(BUILDPYTHON) $(srcdir)/Modules/_blake2/blake2s_impl.c
clinic
:
check-clean-src
$(BUILDPYTHON) $(srcdir)/Modules/_blake2/blake2s_impl.c
$(RUNSHARED)
$(PYTHON_FOR_BUILD)
$(srcdir)
/Tools/clinic/clinic.py
--make
--srcdir
$(srcdir)
$(RUNSHARED)
$(PYTHON_FOR_BUILD)
$(srcdir)
/Tools/clinic/clinic.py
--make
--srcdir
$(srcdir)
# Build the interpreter
# Build the interpreter
...
@@ -1100,7 +1110,7 @@ altinstall: commoninstall
...
@@ -1100,7 +1110,7 @@ altinstall: commoninstall
$$
ensurepip
--root
=
$(DESTDIR)
/
;
\
$$
ensurepip
--root
=
$(DESTDIR)
/
;
\
fi
fi
commoninstall
:
@FRAMEWORKALTINSTALLFIRST@
\
commoninstall
:
check-clean-src
@FRAMEWORKALTINSTALLFIRST@
\
altbininstall libinstall inclinstall libainstall
\
altbininstall libinstall inclinstall libainstall
\
sharedinstall oldsharedinstall altmaninstall
\
sharedinstall oldsharedinstall altmaninstall
\
@FRAMEWORKALTINSTALLLAST@
@FRAMEWORKALTINSTALLLAST@
...
@@ -1722,7 +1732,7 @@ patchcheck: @DEF_MAKE_RULE@
...
@@ -1722,7 +1732,7 @@ patchcheck: @DEF_MAKE_RULE@
Python/thread.o
:
@THREADHEADERS@
Python/thread.o
:
@THREADHEADERS@
# Declare targets that aren't real files
# Declare targets that aren't real files
.PHONY
:
all build_all sharedmods oldsharedmods test quicktest
.PHONY
:
all build_all sharedmods
check-clean-src
oldsharedmods test quicktest
.PHONY
:
install altinstall oldsharedinstall bininstall altbininstall
.PHONY
:
install altinstall oldsharedinstall bininstall altbininstall
.PHONY
:
maninstall libinstall inclinstall libainstall sharedinstall
.PHONY
:
maninstall libinstall inclinstall libainstall sharedinstall
.PHONY
:
frameworkinstall frameworkinstallframework frameworkinstallstructure
.PHONY
:
frameworkinstall frameworkinstallframework frameworkinstallstructure
...
...
Misc/NEWS.d/next/Build/2017-11-03-15-17-50.bpo-31934.8bUlpv.rst
0 → 100644
View file @
0de92859
Abort the build when building out of a not clean source tree.
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