Skip to content

Commit 41b6f09

Browse files
committed
Just ignore the extension on other than CRuby
1 parent 82b630c commit 41b6f09

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

ext/io/console/extconf.rb

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

4-
ok = true
4+
ok = true if RUBY_ENGINE == "ruby"
55
hdr = nil
66
case
77
when macro_defined?("_WIN32", "")
@@ -14,8 +14,9 @@
1414
%w"stty gtty".each {|f| have_func(f, hdr)}
1515
else
1616
ok = false
17-
end
18-
if ok
17+
end if ok
18+
case ok
19+
when true
1920
have_header("sys/ioctl.h") if hdr
2021
# rb_check_hash_type: 1.9.3
2122
# rb_io_get_write_io: 1.9.1
@@ -27,4 +28,6 @@
2728
create_makefile("io/console") {|conf|
2829
conf << "\n""VK_HEADER = #{vk_header}\n"
2930
}
31+
when nil
32+
File.write("Makefile", dummy_makefile($srcdir).join(""))
3033
end

0 commit comments

Comments
 (0)