Skip to content

Commit

Permalink
Limit load path cache support to truffleruby 23.1+
Browse files Browse the repository at this point in the history
  • Loading branch information
rwstauner committed Jul 20, 2023
1 parent 64a4fda commit 9441077
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/bootsnap/load_path_cache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ def unload!
end

def supported?
# https://github.com/oracle/truffleruby/issues/3131
return false if RUBY_ENGINE == "truffleruby" && RUBY_ENGINE_VERSION < "23.1.0"

%w[ruby truffleruby].include?(RUBY_ENGINE) &&
RUBY_PLATFORM =~ /darwin|linux|bsd|mswin|mingw|cygwin/
end
Expand Down

0 comments on commit 9441077

Please sign in to comment.