Skip to content

Commit

Permalink
Enable ISeq caching on 2.5.4+
Browse files Browse the repository at this point in the history
Ref: #257

The fix was backported in 2.5.4, so we can restrict the
range to 2.5.0...2.5.3.
  • Loading branch information
byroot committed Feb 1, 2021
1 parent 04dfc1b commit 4bf7a66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bootsnap.rb
Expand Up @@ -67,7 +67,7 @@ def self.default_setup
end

ruby_version = Gem::Version.new(RUBY_VERSION)
iseq_cache_enabled = ruby_version < Gem::Version.new('2.5.0') || ruby_version >= Gem::Version.new('2.6.0')
iseq_cache_enabled = ruby_version < Gem::Version.new('2.5.0') || ruby_version >= Gem::Version.new('2.5.4')

setup(
cache_dir: cache_dir,
Expand Down

0 comments on commit 4bf7a66

Please sign in to comment.