HEX
Server: Apache
System: Windows NT MAGNETO-ARM 10.0 build 22000 (Windows 10) AMD64
User: Michel (0)
PHP: 7.4.7
Disabled: NONE
Upload Files
File: C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/fastthread-1.0.7/ext/fastthread/extconf.rb
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