ruby/ext/stringio/extconf.rb
Benoit Daloze 1c3088117a [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

d791b63df6
2023-11-27 12:21:24 +00:00

7 lines
160 B
Ruby

# frozen_string_literal: false
require 'mkmf'
if RUBY_ENGINE == 'ruby'
create_makefile('stringio')
else
File.write('Makefile', dummy_makefile("").join)
end