-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-29243: Fix Makefile with respect to --enable-optimizations #1478
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still see "all" in testall, testuniversal, quicktest, smelly, patchcheck. Please update these ones as well.
But thank you for working on this very annoying bug!
Ah, you're right, thanks for the help! I've amended the commit accordingly. |
I ran the following test and I only see Python compiled twice, as expected:
Command:
|
"all" target is no more used directly in Makefile
Can you please document the change in the Build section in Misc/NEWS? With a NEWS entry, the change will be ready to be merged. |
When using the Profile Guided Optimization (./configure --enable-optimizations) Python is built not only during `make` but rebuilt again during `make test`, `make install` and others. This patch fixes the issue. Note that this fix produces no change at all in the Makefile if configure is run witout --enable-optimizations.
Amended the commit with a NEWS entry! |
@torsava you don't need to rebase or squash the commit, at the end of the merge it will do it so :) |
Oh, I'm sorry, I missed the "First-time contributor" notice on GitHub. Would you mind to add your name in Misc/ACKS as well? |
Ah, thank you! I wasn't sure what the merging policy was here, and I dislike simple changes drawn out over multiple commits. (I now realise it's addressed in the contributor guide, sorry for missing that.)
Done, thanks! |
@torsava yes, I did this before, I also like to squash to make it clean. But that is not good for others to reviewing on GitHub when doing squashing. And there is a discussion (I dont' remember on python-dev or python-committers) about this, the final answer is: don't squash and leave to the end, you can see here for more information: devguide-pullrequest |
Thank you for your contrib Tomáš Orsava! This bug annoyed me, I opened a duplicate issue: http://bugs.python.org/issue29641 @torsava: Do you want to do the backports? https://docs.python.org/devguide/committing.html#backporting-changes-to-an-older-version |
Glad to have helped!
I'm having some trouble with |
Take your time, there is no urgency ;-) You can ping me directly, we are colleagues ;-) |
thank you! :) |
Source is python/cpython#1478, backported to 3.5 and 3.6.
Source is python/cpython#1478, backported to 3.5 and 3.6.
…n#1478) * bpo-29243: Fix Makefile with respect to --enable-optimizations When using the Profile Guided Optimization (./configure --enable-optimizations) Python is built not only during `make` but rebuilt again during `make test`, `make install` and others. This patch fixes the issue. Note that this fix produces no change at all in the Makefile if configure is run witout --enable-optimizations. * !squash (cherry picked from commit a1054c3)
…ythonGH-1478) * bpo-29243: Fix Makefile with respect to --enable-optimizations When using the Profile Guided Optimization (./configure --enable-optimizations) Python is built not only during `make` but rebuilt again during `make test`, `make install` and others. This patch fixes the issue. Note that this fix produces no change at all in the Makefile if configure is run witout --enable-optimizations. * !squash. (cherry picked from commit a1054c3)
…H-1478) (#1518) * bpo-29243: Fix Makefile with respect to --enable-optimizations (#1478) * bpo-29243: Fix Makefile with respect to --enable-optimizations When using the Profile Guided Optimization (./configure --enable-optimizations) Python is built not only during `make` but rebuilt again during `make test`, `make install` and others. This patch fixes the issue. Note that this fix produces no change at all in the Makefile if configure is run witout --enable-optimizations. * !squash (cherry picked from commit a1054c3) * [3.6] bpo-29243: Fix Makefile with respect to --enable-optimizations (GH-1478) * bpo-29243: Fix Makefile with respect to --enable-optimizations When using the Profile Guided Optimization (./configure --enable-optimizations) Python is built not only during `make` but rebuilt again during `make test`, `make install` and others. This patch fixes the issue. Note that this fix produces no change at all in the Makefile if configure is run witout --enable-optimizations. * !squash. (cherry picked from commit a1054c3)
…ythonGH-1478) * bpo-29243: Fix Makefile with respect to --enable-optimizations When using the Profile Guided Optimization (./configure --enable-optimizations) Python is built not only during `make` but rebuilt again during `make test`, `make install` and others. This patch fixes the issue. Note that this fix produces no change at all in the Makefile if configure is run witout --enable-optimizations. * !squash. (cherry picked from commit a1054c3)
…H-1478) (#1520) * bpo-29243: Fix Makefile with respect to --enable-optimizations When using the Profile Guided Optimization (./configure --enable-optimizations) Python is built not only during `make` but rebuilt again during `make test`, `make install` and others. This patch fixes the issue. Note that this fix produces no change at all in the Makefile if configure is run witout --enable-optimizations. * !squash. (cherry picked from commit a1054c3)
…ythonGH-1478) * bpo-29243: Fix Makefile with respect to --enable-optimizations When using the Profile Guided Optimization (./configure --enable-optimizations) Python is built not only during `make` but rebuilt again during `make test`, `make install` and others. This patch fixes the issue. Note that this fix produces no change at all in the Makefile if configure is run witout --enable-optimizations. * !squash. (cherry picked from commit a1054c3)
…H-1478) (#1522) * bpo-29243: Fix Makefile with respect to --enable-optimizations When using the Profile Guided Optimization (./configure --enable-optimizations) Python is built not only during `make` but rebuilt again during `make test`, `make install` and others. This patch fixes the issue. Note that this fix produces no change at all in the Makefile if configure is run witout --enable-optimizations. * !squash. (cherry picked from commit a1054c3)
Source is python/cpython#1478, backported to 3.5 and 3.6.
When using the Profile Guided Optimization (./configure --enable-optimizations)
Python is built not only during
make
but rebuilt again duringmake test
andmake install
. This patch fixes the issue.Note that this fix produces no change at all in the Makefile if configure is
run witout --enable-optimizations.