Sha256: a8522232097f6ea14061f231ec80742712906a4e90aad6e3d5cd8d3be8d1f032

Contents?: true

Size: 614 Bytes

Versions: 30

Compression:

Stored size: 614 Bytes

Contents

require 'fileutils'
require 'mkmf'

unless RUBY_ENGINE == "ruby"
  File.write("Makefile", dummy_makefile($srcdir).join(""))
  exit
end

extension_name = 'concurrent_ruby_ext'

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

30 entries across 30 versions & 1 rubygems

Version Path
concurrent-ruby-ext-1.2.3 ext/concurrent-ruby-ext/extconf.rb
concurrent-ruby-ext-1.2.2-x86-mingw32 ext/concurrent-ruby-ext/extconf.rb
concurrent-ruby-ext-1.2.2-x64-mingw32 ext/concurrent-ruby-ext/extconf.rb
concurrent-ruby-ext-1.2.2 ext/concurrent-ruby-ext/extconf.rb
concurrent-ruby-ext-1.2.1-x86-mingw32 ext/concurrent-ruby-ext/extconf.rb
concurrent-ruby-ext-1.2.1-x64-mingw32 ext/concurrent-ruby-ext/extconf.rb
concurrent-ruby-ext-1.2.1 ext/concurrent-ruby-ext/extconf.rb
concurrent-ruby-ext-1.2.0-x86-mingw32 ext/concurrent-ruby-ext/extconf.rb
concurrent-ruby-ext-1.2.0-x64-mingw32 ext/concurrent-ruby-ext/extconf.rb
concurrent-ruby-ext-1.2.0 ext/concurrent-ruby-ext/extconf.rb