[ruby/io-nonblock] Add TruffleRuby support and add it in CI

* Do not use a C extension on TruffleRuby for these 3 methods.

https://github.com/ruby/io-nonblock/commit/1b8e52abfa
This commit is contained in:
Benoit Daloze 2023-05-30 14:21:54 +02:00 committed by git
parent c7c8e4c96e
commit 30b960ba34

View File

@ -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"