From 30b960ba345fd462f98db204f47bba66819d9884 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Tue, 30 May 2023 14:21:54 +0200 Subject: [PATCH] [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 --- ext/io/nonblock/extconf.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ext/io/nonblock/extconf.rb b/ext/io/nonblock/extconf.rb index 5321593278..a1e6075c9b 100644 --- a/ext/io/nonblock/extconf.rb +++ b/ext/io/nonblock/extconf.rb @@ -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"