[前][次][番号順一覧][スレッド一覧]

ruby-changes:60109

From: Nobuyoshi <ko1@a...>
Date: Tue, 18 Feb 2020 11:34:57 +0900 (JST)
Subject: [ruby-changes:60109] 5ef383552d (master): [ruby/io-console] Just ignore the extension on other than CRuby

https://git.ruby-lang.org/ruby.git/commit/?id=5ef383552d

From 5ef383552dfc4e0e3c76d3be2ebab71f8c0f59d4 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Mon, 17 Feb 2020 15:24:57 +0900
Subject: [ruby/io-console] Just ignore the extension on other than CRuby

https://github.com/ruby/io-console/commit/41b6f09574

diff --git a/ext/io/console/extconf.rb b/ext/io/console/extconf.rb
index a6049da..3d7e75e 100644
--- a/ext/io/console/extconf.rb
+++ b/ext/io/console/extconf.rb
@@ -1,7 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ext/io/console/extconf.rb#L1
 # frozen_string_literal: false
 require 'mkmf'
 
-ok = true
+ok = true if RUBY_ENGINE == "ruby"
 hdr = nil
 case
 when macro_defined?("_WIN32", "")
@@ -14,8 +14,9 @@ when have_header(hdr = "sgtty.h") https://github.com/ruby/ruby/blob/trunk/ext/io/console/extconf.rb#L14
   %w"stty gtty".each {|f| have_func(f, hdr)}
 else
   ok = false
-end
-if ok
+end if ok
+case ok
+when true
   have_header("sys/ioctl.h") if hdr
   # rb_check_hash_type: 1.9.3
   # rb_io_get_write_io: 1.9.1
@@ -27,4 +28,6 @@ if ok https://github.com/ruby/ruby/blob/trunk/ext/io/console/extconf.rb#L28
   create_makefile("io/console") {|conf|
     conf << "\n""VK_HEADER = #{vk_header}\n"
   }
+when nil
+  File.write("Makefile", dummy_makefile($srcdir).join(""))
 end
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]