Skip to content

Commit

Permalink
Update outdated comment for compile cache support
Browse files Browse the repository at this point in the history
2.3 support was dropped in 88b8cd4
TruffleRuby was added in acffd63
  • Loading branch information
rwstauner committed Jul 21, 2023
1 parent d531d5a commit e2eb363
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/bootsnap/compile_cache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ def self.permission_error(path)
end

def self.supported?
# only enable on 'ruby' (MRI), POSIX (darwin, linux, *bsd), Windows (RubyInstaller2) and >= 2.3.0
%w[ruby truffleruby].include?(RUBY_ENGINE) && RUBY_PLATFORM.match?(/darwin|linux|bsd|mswin|mingw|cygwin/)
# only enable on 'ruby' (MRI) and TruffleRuby for POSIX (darwin, linux, *bsd), Windows (RubyInstaller2)
%w[ruby truffleruby].include?(RUBY_ENGINE) &&
RUBY_PLATFORM.match?(/darwin|linux|bsd|mswin|mingw|cygwin/)
end
end
end

0 comments on commit e2eb363

Please sign in to comment.