Skip to content
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 way to build the Tier 2 interpreter on Windows #118446

Closed
gvanrossum opened this issue Apr 30, 2024 · 1 comment
Closed

Add a way to build the Tier 2 interpreter on Windows #118446

gvanrossum opened this issue Apr 30, 2024 · 1 comment
Labels
3.13 bugs and security fixes build The build process and cross-build type-feature A feature request or enhancement

Comments

@gvanrossum
Copy link
Member

gvanrossum commented Apr 30, 2024

Feature or enhancement

Once gh-118339 lands the Windows build has only two options when it comes to JIT/Tier 2:

  • Default build has no JIT and no Tier 2 interpreter
  • Building with PCbuild\build.bat -enable-jit builds the JIT and enables it by default

We've added fancy options to --enable-experimental-jit for Unix builds; we should offer the same options for Windows (see gh-118335).

The idea is that you can specify independently:

  • Whether to build the JIT, the Tier 2 interpreter, or neither (both is not an option)
  • Whether it's enabled by default at runtime (if built at all), overridable by PYTHON_JIT=0|1 environment variable (see Python/pylifecycle.c).

The C code expects the following:

  • _Py_TIER2 is set when building with JIT or with Tier 2 interpreter
  • _Py_JIT is set when building with JIT
@gvanrossum gvanrossum added type-feature A feature request or enhancement build The build process and cross-build 3.13 bugs and security fixes labels Apr 30, 2024
@brandtbucher
Copy link
Member

This is done, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.13 bugs and security fixes build The build process and cross-build type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants