Skip to content

Commit c17b8cf

Browse files
aardvark179nobu
authored andcommitted
Enable building the C extension on TruffleRuby.
1 parent 15cd889 commit c17b8cf

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Rake::TestTask.new(:test) do |t|
1111
t.test_files = FileList["test/**/test_*.rb"]
1212
end
1313

14-
if RUBY_ENGINE == "ruby"
14+
if RUBY_ENGINE == "ruby" || RUBY_ENGINE == "truffleruby"
1515
require 'rake/extensiontask'
1616
Rake::ExtensionTask.new(name)
1717
task :test => :compile

ext/io/console/extconf.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: false
22
require 'mkmf'
33

4-
ok = true if RUBY_ENGINE == "ruby"
4+
ok = true if RUBY_ENGINE == "ruby" || RUBY_ENGINE == "truffleruby"
55
hdr = nil
66
case
77
when macro_defined?("_WIN32", "")

lib/io/console.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
if RUBY_ENGINE == 'ruby'
1+
if RUBY_ENGINE == 'ruby' || RUBY_ENGINE == 'truffleruby'
22
require_relative 'console.so'
33
else
44
require_relative 'console/ffi/console'

0 commit comments

Comments
 (0)