Sha256: 1a11f6e37784111a343bf137d1206aecd98b02033acbecb645a776dc24b180a4
Contents?: true
Size: 1.31 KB
Versions: 2
Compression:
Stored size: 1.31 KB
Contents
require 'mkmf' extension_name = 'ox' dir_config(extension_name) parts = RUBY_DESCRIPTION.split(' ') type = parts[0].downcase type = 'ree' if 'ruby' == type && RUBY_DESCRIPTION.include?('Ruby Enterprise Edition') platform = RUBY_PLATFORM version = RUBY_VERSION.split('.') puts ">>>>> Creating Makefile for #{type} version #{RUBY_VERSION} on #{platform} <<<<<" dflags = { 'RUBY_TYPE' => type, (type.upcase + '_RUBY') => nil, 'RUBY_VERSION' => RUBY_VERSION, 'RUBY_VERSION_MAJOR' => version[0], 'RUBY_VERSION_MINOR' => version[1], 'RUBY_VERSION_MICRO' => version[2] } dflags.each do |k, v| if v.nil? $CPPFLAGS += " -D#{k}" else $CPPFLAGS += " -D#{k}=#{v}" end end $CPPFLAGS += ' -Wall' # puts "*** $CPPFLAGS: #{$CPPFLAGS}" CONFIG['warnflags'].slice!(/ -Wsuggest-attribute=format/) CONFIG['warnflags'].slice!(/ -Wdeclaration-after-statement/) CONFIG['warnflags'].slice!(/ -Wmissing-noreturn/) have_func('rb_time_timespec') have_func('rb_struct_alloc_noinit') have_func('rb_obj_encoding') have_func('rb_ivar_foreach') have_func('rb_ext_ractor_safe', 'ruby.h') have_func('pthread_mutex_init') have_func('rb_enc_interned_str') have_func('rb_time_nano_new') have_func('index') have_header('ruby/st.h') have_header('sys/uio.h') have_struct_member('struct tm', 'tm_gmtoff') create_makefile(extension_name) `make clean`
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ox-2.14.16 | ext/ox/extconf.rb |
ox-2.14.15 | ext/ox/extconf.rb |