Skip to content

Commit

Permalink
Enable building the C extension on TruffleRuby.
Browse files Browse the repository at this point in the history
  • Loading branch information
aardvark179 authored and nobu committed Mar 5, 2021
1 parent 15cd889 commit c17b8cf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Rake::TestTask.new(:test) do |t|
t.test_files = FileList["test/**/test_*.rb"]
end

if RUBY_ENGINE == "ruby"
if RUBY_ENGINE == "ruby" || RUBY_ENGINE == "truffleruby"
require 'rake/extensiontask'
Rake::ExtensionTask.new(name)
task :test => :compile
Expand Down
2 changes: 1 addition & 1 deletion ext/io/console/extconf.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: false
require 'mkmf'

ok = true if RUBY_ENGINE == "ruby"
ok = true if RUBY_ENGINE == "ruby" || RUBY_ENGINE == "truffleruby"
hdr = nil
case
when macro_defined?("_WIN32", "")
Expand Down
2 changes: 1 addition & 1 deletion lib/io/console.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
if RUBY_ENGINE == 'ruby'
if RUBY_ENGINE == 'ruby' || RUBY_ENGINE == 'truffleruby'
require_relative 'console.so'
else
require_relative 'console/ffi/console'
Expand Down

0 comments on commit c17b8cf

Please sign in to comment.