Sha256: 1bacc46cc6a54dc4f65027cee02a285a730c4c225aaafddd4920076a7997059c

Contents?: true

Size: 844 Bytes

Versions: 11

Compression:

Stored size: 844 Bytes

Contents

require 'mkmf'

have_header("ruby/st.h")
have_header("st.h")
have_func("rb_str_replace", ["ruby.h"])
have_func("rb_intern_str", ["ruby.h"])
have_func("rb_sym2str", ["ruby.h"])
have_func("rb_str_intern", ["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

11 entries across 11 versions & 2 rubygems

Version Path
msgpack-0.5.12 ext/msgpack/extconf.rb
msgpack-0.5.12-x86-mingw32 ext/msgpack/extconf.rb
msgpack-0.6.0pre1-x64-mingw32 ext/msgpack/extconf.rb
msgpack-0.6.0pre1-x86-mingw32 ext/msgpack/extconf.rb
msgpack-0.6.0pre1 ext/msgpack/extconf.rb
msgpack-0.5.11 ext/msgpack/extconf.rb
msgpack-0.5.10-x86-mingw32 ext/msgpack/extconf.rb
msgpack-0.5.10 ext/msgpack/extconf.rb
msgpack-ably-0.5.10 ext/msgpack/extconf.rb
msgpack-0.5.9-x86-mingw32 ext/msgpack/extconf.rb
msgpack-0.5.9 ext/msgpack/extconf.rb