GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — GH-131278: Support building using "computed gotos" for clang-cl on Windows by chris-eibl · Pull Request #131279 · python/cpython Conversation
|
|
I don't remember if we had a Whats New for the original clang-cl issue. We should definitely mention in the whats new that clang cl building on Windows is now possible, and say PGO too. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Woops sorry pressed the wrong button! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@chris-eibl How do you plan to address:
Are there more PRs for those kind of optimizations on Windows? if so, we can delay everything until they are done. Otherwise, let's mention that in the What's New entry |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Building with clang-cl has been possible for a very long time: #101352. The only fixes I am aware of are just these two (and just main and current 3.14 alphas are/have been affected):
So maybe just mention PGO in the Whats New? @zooba treats clang-cl as quite optional in #129907 (comment) Shall I give it a go here and mention those three things? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@Fidget-Spinner : your tail call for Windows #130040 (comment) came without What's new, too. Shall I add an entry, too?
I'd like to work on the many warnings clang-cl emits, but IMHO that won't go into What's new. Regarding optimizations, I think that's it atm, we can amend later, anyway. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
We don't need it, as there's already a whats new for tail call in general. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| * building with clang-cl on Windows now supports PGO (profile guided | ||
| optimization), uses ``-flto=thin`` and can be configured to use | ||
| computed gotos. (Contributed by Chris Eibl in |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
IMHO "computed gotos and/or tail calls" would be better here, but up to @Fidget-Spinner 's liking :)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I think we want to be careful putting too much into What's New, since we still aren't technically supporting clang-cl on Windows yet, we're really just unblocking it. No doubt if @chris-eibl sticks around it'll remain unblocked, but also, if Clang one day breaks down and MSVC is fine then we're still going to release. A simple entry (which should already be there?) stating that |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
This is still true, we do not have a "clang" switch for build.bat, yet. I am fine with entirely removing the whatsnew if that makes it easier :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
PCbuild changes look good, just suggesting some clarifications to the docs.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| Add optimizing flag ``WITH_COMPUTED_GOTOS`` to support such builds using | ||
| clang-cl on Windows. Patch by Chris Eibl. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| Add optimizing flag ``WITH_COMPUTED_GOTOS`` to support such builds using | |
| clang-cl on Windows. Patch by Chris Eibl. | |
| Add optimizing flag ``WITH_COMPUTED_GOTOS`` to Windows builds for when | |
| using a compiler that supports it (currently clang-cl). Patch by Chris Eibl. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| with :c:expr:`Py_NO_LINK_LIB`. (Contributed by Jean-Christophe | ||
| Fillion-Robin in :gh:`82909`.) | ||
|
|
||
| * building with clang-cl on Windows now supports PGO (profile guided |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| * building with clang-cl on Windows now supports PGO (profile guided | |
| * clang-cl builds on Windows now work with ``--pgo`` (profile guided |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| Fillion-Robin in :gh:`82909`.) | ||
|
|
||
| * building with clang-cl on Windows now supports PGO (profile guided | ||
| optimization), uses ``-flto=thin`` and can be configured to use |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| optimization), uses ``-flto=thin`` and can be configured to use | |
| optimization), and can be configured to use |
Is using -flto=thin important to call out? It shouldn't change the ABI of the build output at all, and it's not configurable.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
(Seen after submitting my review.) Oh don't we? Okay, yeah, let's treat all clang-cl specific changes as undocumented then. The day it gets an option is when we'd start putting notes in the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
This reverts commit 1f5b55f.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.