Sha256: 511ff03fb2817ff7449bfe64cfbe3c1a8b6692eb34b9d1193074bb57e9e4a429

Contents?: true

Size: 706 Bytes

Versions: 4

Compression:

Stored size: 706 Bytes

Contents

version_components = RUBY_VERSION.split('.').map { |c| c.to_i }

need_fastthread = ( !defined? RUBY_ENGINE )
need_fastthread &= ( RUBY_PLATFORM != 'java' )
need_fastthread &= ( version_components[0..1] == [1, 8] && ( version_components[2] < 6 || version_components[2] == 6 && RUBY_PATCHLEVEL.to_i < 112 ) )

if need_fastthread
  require 'mkmf'
  create_makefile('fastthread')
else
  require 'rbconfig'
  File.open('Makefile', 'w') do |stream|
    Config::CONFIG.each do |key, value|
      stream.puts "#{key} = #{value}"
    end
    stream.puts
    stream << <<EOS
RUBYARCHDIR = $(sitearchdir)$(target_prefix)

default:

install:
	mkdir -p $(RUBYARCHDIR)
	touch $(RUBYARCHDIR)/fastthread.rb

EOS
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
blackwinter-fastthread-1.0.5 ext/fastthread/extconf.rb
fastthread-1.0.4 ext/fastthread/extconf.rb
fastthread-1.0.5 ext/fastthread/extconf.rb
fastthread-1.0.6 ext/fastthread/extconf.rb