This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author torsava
Recipients brett.cannon, cstratak, gregory.p.smith, methane, torsava, vstinner, xiang.zhang
Date 2017-05-10.12:54:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1494420866.12.0.833756858196.issue29243@psf.upfronthosting.co.za>
In-reply-to
Content
> Oh wait, I expected that "make test" would build Python with PGO, but it
> doesn't anymore. Would it be possible to change the Makefile to make sure
> that "make python" (on Linux, "make python.exe" on macOS) would build Python
> using PGO?
>
> I tried to hack something, but I'm lost in dependencies... "make profile-opt"
> runs "$(MAKE) build_all_generate_profile" which runs "$(MAKE) build_all
> CFLAGS_NODIST=..." and build_all depends on "$(BUILDPYTHON)".
>
> I'm not sure that it's possible to make everything automatic because of the
> high number of targets and dependencies.

In addition, profile-opt would have to rewritten to test whether there's
already an interpreter built with PGO. And if there is, regenerate it only if
the main target is `all` or `profile-opt`, but not when someone runs `make
test`, `make install`, etc.

It's maybe too radical, but we could change it so that if you run `make test`, `make install` and the like and there's no interpreter built already to test or install, the user is told to run `make` first.
History
Date User Action Args
2017-05-10 12:54:26torsavasetrecipients: + torsava, brett.cannon, gregory.p.smith, vstinner, methane, xiang.zhang, cstratak
2017-05-10 12:54:26torsavasetmessageid: <1494420866.12.0.833756858196.issue29243@psf.upfronthosting.co.za>
2017-05-10 12:54:26torsavalinkissue29243 messages
2017-05-10 12:54:26torsavacreate