Sha256: da3980c5b728423d7be47d0b779dae772cb2c417231fa6dcd53037508b4e788c

Contents?: true

Size: 730 Bytes

Versions: 12

Compression:

Stored size: 730 Bytes

Contents

require 'mkmf'

have_header("ruby/st.h")
have_header("st.h")
have_func("rb_str_replace", ["ruby.h"])

$CFLAGS << %[ -I.. -Wall -O3 -g -std=c99]
#$CFLAGS << %[ -DDISABLE_RMEM]
#$CFLAGS << %[ -DDISABLE_RMEM_REUSE_INTERNAL_FRAGMENT]
#$CFLAGS << %[ -DDISABLE_BUFFER_READ_REFERENCE_OPTIMIZE]
#$CFLAGS << %[ -DDISABLE_BUFFER_READ_TO_S_OPTIMIZE]

if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx'
  # msgpack-ruby doesn't modify data came from RSTRING_PTR(str)
  $CFLAGS << %[ -DRSTRING_NOT_MODIFIED]
  # Rubinius C extensions don't grab GVL while rmem is not thread safe
  $CFLAGS << %[ -DDISABLE_RMEM]
end

if warnflags = CONFIG['warnflags']
  warnflags.slice!(/ -Wdeclaration-after-statement/)
end

create_makefile('msgpack/msgpack')

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
msgpack-0.5.8 ext/msgpack/extconf.rb
msgpack-0.5.7 ext/msgpack/extconf.rb
msgpack-0.5.7-x86-mingw32 ext/msgpack/extconf.rb
msgpack-0.5.6 ext/msgpack/extconf.rb
msgpack-0.5.5-x86-mingw32 ext/msgpack/extconf.rb
msgpack-0.5.5 ext/msgpack/extconf.rb
msgpack-0.5.4-x86-mingw32 ext/msgpack/extconf.rb
msgpack-0.5.4 ext/msgpack/extconf.rb
msgpack-0.5.3-x86-mingw32 ext/msgpack/extconf.rb
msgpack-0.5.3 ext/msgpack/extconf.rb
msgpack-0.5.2-x86-mingw32 ext/msgpack/extconf.rb
msgpack-0.5.2 ext/msgpack/extconf.rb