-
-
Notifications
You must be signed in to change notification settings - Fork 30.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
Add a Py_JIT_ENABLED
variable to pyconfig.h
#126204
Comments
Possible values for
|
Bikeshedding: |
After taking a look at |
Py_JIT
variable to pyconfig.h
Py_JIT_ENABLED
variable to pyconfig.h
If it's at all possible to do this with a It does mean that build tools need to learn to check for it and set the variable, if it matters that extension modules have the variable set (which I'd have thought it doesn't). If it doesn't affect how extension modules should be compiled, then it shouldn't be in pyconfig.h on Windows. |
Agreed. And yes, there is a way to change only |
I'd much rather add I propose On non-jit builds, including the tier-two interpreter, it always returns |
I'm inclined to agree that
There doesn't seem to be any need for the function at all if it's absent, and it's not the first time we've built in an optional private attribute here. Given it's a compile-time build option already it's just as easy to make the whole function disappear as to give it a different implementation. |
Feature or enhancement
Proposal:
On Windows(more exactly on all non-configure builds), currently there is no way to determine if CPython is built with a
JIT
.This is a blocker for #126166.
I'm propose adding a variable
Py_JIT
(maybe this is not a great name..) topyconfig.h
.Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
Linked PRs
sys._jit_enabled
helper #126247The text was updated successfully, but these errors were encountered: