Sha256: 3d6945de32d066250fa4e134053053894edfe608040c10662088335bc7800297

Contents?: true

Size: 514 Bytes

Versions: 52

Compression:

Stored size: 514 Bytes

Contents

require 'fileutils'

extension_name = 'concurrent_ruby_ext'

require 'mkmf'
dir_config(extension_name)
have_header "libkern/OSAtomic.h"

compiler_is_gcc = (CONFIG["GCC"] && !CONFIG["GCC"].empty?) ||
    # This could stand to be more generic...  but I am afraid.
    CONFIG["CC"] =~ /\bgcc\b/

if compiler_is_gcc
  case CONFIG["arch"]
  when /mswin32|mingw|solaris/
    $CFLAGS += " -march=native"
  when 'i686-linux'
    $CFLAGS += " -march=i686"
  end
end

create_makefile File.join('concurrent', extension_name)

Version data entries

52 entries across 52 versions & 3 rubygems

Version Path
o-concurrent-ruby-ext-1.1.13 ext/concurrent-ruby-ext/extconf.rb
o-concurrent-ruby-ext-1.1.12 ext/concurrent-ruby-ext/extconf.rb
o-concurrent-ruby-ext-1.1.11 ext/concurrent-ruby-ext/extconf.rb
concurrent-ruby-ext-1.1.10-x86-mingw32 ext/concurrent-ruby-ext/extconf.rb
concurrent-ruby-ext-1.1.10-x64-mingw32 ext/concurrent-ruby-ext/extconf.rb
concurrent-ruby-ext-1.1.10 ext/concurrent-ruby-ext/extconf.rb
concurrent-ruby-ext-1.1.9-x86-mingw32 ext/concurrent-ruby-ext/extconf.rb
concurrent-ruby-ext-1.1.9-x64-mingw32 ext/concurrent-ruby-ext/extconf.rb
concurrent-ruby-ext-1.1.9 ext/concurrent-ruby-ext/extconf.rb
concurrent-ruby-ext-1.1.8-x86-mingw32 ext/concurrent-ruby-ext/extconf.rb
concurrent-ruby-ext-1.1.8-x64-mingw32 ext/concurrent-ruby-ext/extconf.rb
concurrent-ruby-ext-1.1.8 ext/concurrent-ruby-ext/extconf.rb
concurrent-ruby-ext-1.1.7-x86-mingw32 ext/concurrent-ruby-ext/extconf.rb
concurrent-ruby-ext-1.1.7-x64-mingw32 ext/concurrent-ruby-ext/extconf.rb
concurrent-ruby-ext-1.1.7 ext/concurrent-ruby-ext/extconf.rb
concurrent-ruby-ext-1.1.6-x86-mingw32 ext/concurrent-ruby-ext/extconf.rb
concurrent-ruby-ext-1.1.6-x64-mingw32 ext/concurrent-ruby-ext/extconf.rb
concurrent-ruby-ext-1.1.6 ext/concurrent-ruby-ext/extconf.rb
concurrent-ruby-ext-1.1.6.pre1-x86-mingw32 ext/concurrent-ruby-ext/extconf.rb
concurrent-ruby-ext-1.1.6.pre1-x64-mingw32 ext/concurrent-ruby-ext/extconf.rb