diff options
| author | Max Bernstein <ruby@bernsteinbear.com> | 2026-04-08 10:47:09 -0400 |
|---|---|---|
| committer | Max Bernstein <tekknolagi@gmail.com> | 2026-04-08 18:18:12 -0400 |
| commit | b24320958b111327c232fde20448a5f6b30b8c02 (patch) | |
| tree | ba5ff3f5291ffa746502a4cae2f1d7b2e342ac1f | |
| parent | b53186a4bf58f6cb07b32a417002e415f08e9fe4 (diff) | |
ZJIT: Require Ruby 3.4+ in bisect script
| -rwxr-xr-x | tool/zjit_bisect.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tool/zjit_bisect.rb b/tool/zjit_bisect.rb index 9fa98ca0f3..38235561ec 100755 --- a/tool/zjit_bisect.rb +++ b/tool/zjit_bisect.rb @@ -5,6 +5,9 @@ require 'shellwords' require 'tempfile' require 'timeout' +required_ruby_version = Gem::Version.new("3.4.0") +raise "Ruby version #{required_ruby_version} or higher is required" if Gem::Version.new(RUBY_VERSION) < required_ruby_version + ARGS = {timeout: 5} OptionParser.new do |opts| opts.banner += " <path_to_ruby> -- <options>" |
