Skip to content

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

Closed
@gvanrossum

Description

@gvanrossum

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and security fixesbuildThe build process and cross-buildtype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions