summaryrefslogtreecommitdiff
path: root/ext/stringio/extconf.rb
diff options
context:
space:
mode:
authorBenoit Daloze <[email protected]>2023-11-24 13:14:56 +0100
committergit <[email protected]>2023-11-27 12:21:24 +0000
commit1c3088117a6b22b6aa07fb8c9c28028851786c1b (patch)
tree1b28a6aca1f5483cd8a7999399804f71a291127b /ext/stringio/extconf.rb
parenta07d84b63c7785f6f1a0c5f6933c0b7fa87df1d8 (diff)
[ruby/stringio] Do not compile the C extension on TruffleRuby
* Before this it was compiled but not used, because TruffleRuby has a stringio.rb in stdlib and .rb has precedence over .so. In fact that extension never worked on TruffleRuby, because rb_io_extract_modeenc() has never been defined on TruffleRuby. * So this just skip compiling the extension since compilation of it now fails: https://github.com/ruby/openssl/issues/699 https://github.com/ruby/stringio/commit/d791b63df6
Diffstat (limited to 'ext/stringio/extconf.rb')
-rw-r--r--ext/stringio/extconf.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/stringio/extconf.rb b/ext/stringio/extconf.rb
index ad8650dce2..553732f79c 100644
--- a/ext/stringio/extconf.rb
+++ b/ext/stringio/extconf.rb
@@ -1,3 +1,7 @@
# frozen_string_literal: false
require 'mkmf'
-create_makefile('stringio')
+if RUBY_ENGINE == 'ruby'
+ create_makefile('stringio')
+else
+ File.write('Makefile', dummy_makefile("").join)
+end