https://github.com/python/cpython/commit/715d34fc38f84bbccf9feaf937477290e575b060
commit: 715d34fc38f84bbccf9feaf937477290e575b060
branch: main
author: Kevin Modzelewski <[email protected]>
committer: itamaro <[email protected]>
date: 2026-11-17T21:03:13Z
summary:
gh-162170: Makefile: have "install" depend on pgo (#95287)
Previously, `make install` would ignore PGO. This isn't an
issue if one runs `make && make install`, since `make` will
build with pgo (if requested) and then `make install` won't
rebuild anything.
But if one simply does `./configure --enable-optimizations && make install`,
the build system would build a non-PGO build and then install that.
This commit changes the Makefile so that `install` depends on
`all`, which includes PGO when requested.
files:
A Misc/NEWS.d/next/Build/2026-11-17-20-12-03.gh-issue-162170.0SpcRZ.rst
M Makefile.pre.in
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 1d109dac77fa906..d0dcf163e380248 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -2485,7 +2485,7 @@ sharedinstall: all
# Install the interpreter with $(VERSION) affixed
# This goes into $(exec_prefix)
.PHONY: altbininstall
-altbininstall: $(BUILDPYTHON) @FRAMEWORKPYTHONW@
+altbininstall: all @FRAMEWORKPYTHONW@
@for i in $(BINDIR) $(LIBDIR); \
do \
if test ! -d $(DESTDIR)$$i; then \
diff --git
a/Misc/NEWS.d/next/Build/2026-11-17-20-12-03.gh-issue-162170.0SpcRZ.rst
b/Misc/NEWS.d/next/Build/2026-11-17-20-12-03.gh-issue-162170.0SpcRZ.rst
new file mode 100644
index 000000000000000..caa4b13ce303395
--- /dev/null
+++ b/Misc/NEWS.d/next/Build/2026-11-17-20-12-03.gh-issue-162170.0SpcRZ.rst
@@ -0,0 +1,3 @@
+``make install`` now depends on the ``all`` target, so running it directly
+after ``./configure --enable-optimizations`` installs the PGO-optimized
+interpreter rather than an unoptimized build.
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]