Skip to content

Commit

Permalink
Tweak wording for Prism::BACKEND
Browse files Browse the repository at this point in the history
* TruffleRuby does support C extensions but FFI is faster there.
  • Loading branch information
eregon committed Feb 29, 2024
1 parent b238d7c commit d211a87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/prism.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ def self.parse_file_failure?(filepath, **options)
if RUBY_ENGINE == "ruby" and !ENV["PRISM_FFI_BACKEND"]
require "prism/prism"

# Using a C extension is the default backend for the parser.
# The C extension is the default backend on CRuby.
Prism::BACKEND = :CEXT
else
require_relative "prism/ffi"

# On platforms that don't support C extensions, we use FFI.
# The FFI backend is used on other Ruby implementations.
Prism::BACKEND = :FFI
end

0 comments on commit d211a87

Please sign in to comment.