Skip to content

YJIT support for ruby 3.2 #390

@seandilda

Description

@seandilda

YJIT currently works on the ruby 3.1 images, but not on the 3.2-preview images. It would be nice to have it enabled so that functionality isn't lost.

Starting with ruby 3.2, YJIT requires rust 1.58.1+ and using the --enable-yjit config option to be built into ruby. It also only works on the x86_64, arm64, and aarch64 platforms.

I started to update the Dockerfile.template to support this, but it turns out that alpine3.16 is the only build variant that ships with a new enough rust to support YJIT.

With the combination of limited build variants and limited platforms, what is the best way to support YJIT in this project? I didn't see a way to change which Dockerfile is used for each platform, but I'm not very familiar with the build infrastructure used by this project. If someone can point me in the right direction, I can put together a merge request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions