Skip to content

Commit

Permalink
[ruby/prism] 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.

ruby/prism@d211a87691
  • Loading branch information
eregon authored and matzbot committed Feb 29, 2024
1 parent 1a58892 commit 6075f67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/prism.rb
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 6075f67

Please sign in to comment.