summaryrefslogtreecommitdiff
path: root/ext/stringio/extconf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/stringio/extconf.rb')
-rw-r--r--ext/stringio/extconf.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/stringio/extconf.rb b/ext/stringio/extconf.rb
index a933159766..553732f79c 100644
--- a/ext/stringio/extconf.rb
+++ b/ext/stringio/extconf.rb
@@ -1,4 +1,7 @@
# frozen_string_literal: false
require 'mkmf'
-have_func("rb_io_extract_modeenc", "ruby/io.h")
-create_makefile('stringio')
+if RUBY_ENGINE == 'ruby'
+ create_makefile('stringio')
+else
+ File.write('Makefile', dummy_makefile("").join)
+end