-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
gh-141808: Don't remove the JIT stencils when building with PGO #141809
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
base: main
Are you sure you want to change the base?
Conversation
|
I opened this as a draft, because keeping the files from being deleted when |
Misc/NEWS.d/next/Build/2025-11-20-23-15-39.gh-issue-141808.NEewZC.rst
Outdated
Show resolved
Hide resolved
…8.NEewZC.rst Co-authored-by: Mikhail Efimov <efimov.mikhail@gmail.com>
|
My understanding of So I would suggest making a new target |
|
However, when the stencils are removed in make clean, they are apparently also removed during the pgo task that calls it. I have not yet figured out why and where make clean is called. |
|
Ah: Lines 838 to 841 in bc9e63d
So the problem with my approach is that by dropping in the prebuilt stencils before this runs, they are deleted here. That's probably only problematic for my use case :/ |
This allows us not to call make clean from the PGO task.
|
So, I modified the behavior to keep removing the stencils with |
efimov-mikhail
left a comment
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.
LGTM.
I can confirm that issue with double generation of JIT stencils for PGO build is fixed.
And Makefile.pre.in changes looks clean for me.
See https://discuss.python.org/t/building-the-jit-with-pre-built-stencils/91838/12