Sha256: 2952464ea9967568cf564c53507eadc04e544de22f970a09d825c22ac0522f31

Contents?: true

Size: 609 Bytes

Versions: 3

Compression:

Stored size: 609 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]

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

3 entries across 3 versions & 3 rubygems

Version Path
vanity-1.7.1 vendor/ruby/1.9.1/gems/fastthread-1.0.7/ext/fastthread/extconf.rb
blackwinter-fastthread-1.0.7 ext/fastthread/extconf.rb
fastthread-1.0.7 ext/fastthread/extconf.rb