Skip to content

Commit

Permalink
[ruby/io-nonblock] Add TruffleRuby support and add it in CI
Browse files Browse the repository at this point in the history
* Do not use a C extension on TruffleRuby for these 3 methods.

ruby/io-nonblock@1b8e52abfa
  • Loading branch information
eregon authored and matzbot committed May 30, 2023
1 parent c7c8e4c commit 30b960b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ext/io/nonblock/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
require 'mkmf'
target = "io/nonblock"

unless RUBY_ENGINE == 'ruby'
File.write("Makefile", dummy_makefile($srcdir).join(""))
return
end

have_func("rb_io_descriptor")

hdr = %w"fcntl.h"
Expand Down

0 comments on commit 30b960b

Please sign in to comment.