Skip to content

Commit

Permalink
[ruby/stringio] Do not compile the C extension on TruffleRuby
Browse files Browse the repository at this point in the history
* 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:
  ruby/openssl#699

ruby/stringio@d791b63df6
  • Loading branch information
eregon authored and matzbot committed Nov 27, 2023
1 parent a07d84b commit 1c30881
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ext/stringio/extconf.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1c30881

Please sign in to comment.