Skip to content

ZJIT: Handle ZJIT options properly #13197

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

Merged
merged 1 commit into from
Apr 29, 2025
Merged

Conversation

k0kubun
Copy link
Member

@k0kubun k0kubun commented Apr 28, 2025

This PR polishes the help and the interface to enable ZJIT.

  • Hide --zjit from --help when USE_ZJIT is 0
  • Show --jit for ZJIT-enabled build too
  • Print user-facing ZJIT options in --help
  • Enable ZJIT when jit feature is turned on and USE_ZJIT is 1
  • Support RUBY_ZJIT_ENABLE environment variable like RUBY_YJIT_ENABLE

@matzbot matzbot requested a review from a team April 28, 2025 18:17
help: c_int, highlight: c_int, width: c_uint, columns: c_int);
}
let name = CString::new(name).unwrap();
let description = CString::new(description).unwrap();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assert 80 cols here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The limitation is more tightly coupled to show_usage_part that formats each line with indentation (we can't even pass 80 cols of description from this function, for example). I would not add such an assertion on this side.

@k0kubun k0kubun merged commit 608fe6e into ruby:master Apr 29, 2025
83 of 86 checks passed
@k0kubun k0kubun deleted the zjit-options branch April 29, 2025 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants