[Python-checkins] Enable the verbose build for extension modules with GNU make (GH-6659)

Miss Islington (bot) webhook-mailer at python.org
Mon Jun 4 13:37:07 EDT 2018


https://github.com/python/cpython/commit/0da3f412bc7f998c9db1309b288935eedc03d6d7
commit: 0da3f412bc7f998c9db1309b288935eedc03d6d7
branch: 3.6
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018-06-04T10:37:04-07:00
summary:

Enable the verbose build for extension modules with GNU make (GH-6659)

(cherry picked from commit 10f715d71218ece737f990fa55027b8e1120cc3a)

Co-authored-by: Matthias Klose <doko42 at users.noreply.github.com>

files:
A Misc/NEWS.d/next/Build/2018-04-30-17-36-46.bpo-33394._Vdi4t.rst
M Makefile.pre.in

diff --git a/Makefile.pre.in b/Makefile.pre.in
index 1c9ffea6eed4..d912a19e79f5 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -578,11 +578,15 @@ $(srcdir)/Modules/_blake2/blake2s_impl.c: $(srcdir)/Modules/_blake2/blake2b_impl
 # Under GNU make, MAKEFLAGS are sorted and normalized; the 's' for
 # -s, --silent or --quiet is always the first char.
 # Under BSD make, MAKEFLAGS might be " -s -v x=y".
+# Ignore macros passed by GNU make, passed after --
 sharedmods: $(BUILDPYTHON) pybuilddir.txt Modules/_math.o
-	@case "$$MAKEFLAGS" in \
+	@case "`echo X $$MAKEFLAGS | sed 's/^X //;s/ -- .*//'`" in \
 	    *\ -s*|s*) quiet="-q";; \
 	    *) quiet="";; \
 	esac; \
+	echo "$(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' \
+		_TCLTK_INCLUDES='$(TCLTK_INCLUDES)' _TCLTK_LIBS='$(TCLTK_LIBS)' \
+		$(PYTHON_FOR_BUILD) $(srcdir)/setup.py $$quiet build"; \
 	$(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' \
 		_TCLTK_INCLUDES='$(TCLTK_INCLUDES)' _TCLTK_LIBS='$(TCLTK_LIBS)' \
 		$(PYTHON_FOR_BUILD) $(srcdir)/setup.py $$quiet build
diff --git a/Misc/NEWS.d/next/Build/2018-04-30-17-36-46.bpo-33394._Vdi4t.rst b/Misc/NEWS.d/next/Build/2018-04-30-17-36-46.bpo-33394._Vdi4t.rst
new file mode 100644
index 000000000000..b25fbb02c406
--- /dev/null
+++ b/Misc/NEWS.d/next/Build/2018-04-30-17-36-46.bpo-33394._Vdi4t.rst
@@ -0,0 +1,2 @@
+Enable the verbose build for extension modules, when GNU make is passed
+macros on the command line.



More information about the Python-checkins mailing list