Sha256: bb16d0aad1e194c74e0e34a692ff309e78bf65cae6501afefda5fc4d535c9b6d

Contents?: true

Size: 772 Bytes

Versions: 163

Compression:

Stored size: 772 Bytes

Contents

# frozen_string_literal: false
require 'mkmf'

have_func("rb_enc_raise", "ruby.h")
have_func("rb_enc_interned_str", "ruby.h")

# checking if String#-@ (str_uminus) dedupes... '
begin
  a = -(%w(t e s t).join)
  b = -(%w(t e s t).join)
  if a.equal?(b)
    $CFLAGS << ' -DSTR_UMINUS_DEDUPE=1 '
  else
    $CFLAGS << ' -DSTR_UMINUS_DEDUPE=0 '
  end
rescue NoMethodError
  $CFLAGS << ' -DSTR_UMINUS_DEDUPE=0 '
end

# checking if String#-@ (str_uminus) directly interns frozen strings... '
begin
  s = rand.to_s.freeze
  if (-s).equal?(s) && (-s.dup).equal?(s)
    $CFLAGS << ' -DSTR_UMINUS_DEDUPE_FROZEN=1 '
  else
    $CFLAGS << ' -DSTR_UMINUS_DEDUPE_FROZEN=0 '
  end
rescue NoMethodError
  $CFLAGS << ' -DSTR_UMINUS_DEDUPE_FROZEN=0 '
end

create_makefile 'json/ext/parser'

Version data entries

163 entries across 161 versions & 21 rubygems

Version Path
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/json-2.7.2/ext/json/ext/parser/extconf.rb
direct7-0.0.18 vendor/bundle/ruby/2.7.0/gems/json-2.6.3/ext/json/ext/parser/extconf.rb
direct7-0.0.17 vendor/bundle/ruby/2.7.0/gems/json-2.6.3/ext/json/ext/parser/extconf.rb
direct7-0.0.16 vendor/bundle/ruby/2.7.0/gems/json-2.6.3/ext/json/ext/parser/extconf.rb
cloudsmith-api-2.0.15 vendor/bundle/ruby/2.6.0/gems/json-2.7.2/ext/json/ext/parser/extconf.rb
cloudsmith-api-2.0.14 vendor/bundle/ruby/2.6.0/gems/json-2.7.2/ext/json/ext/parser/extconf.rb
fluent-plugin-nuopenlineage-light-0.1.0 vendor/bundle/ruby/3.3.0/gems/json-2.7.2/ext/json/ext/parser/extconf.rb
fluent-plugin-openlineage-light-0.1.4 vendor/bundle/ruby/3.3.0/gems/json-2.7.2/ext/json/ext/parser/extconf.rb
fluent-plugin-openlineage-light-0.1.3 vendor/bundle/ruby/3.3.0/gems/json-2.7.2/ext/json/ext/parser/extconf.rb
fluent-plugin-openlineage-0.1.0 vendor/bundle/ruby/3.3.0/gems/json-2.7.2/ext/json/ext/parser/extconf.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/json-2.7.2/ext/json/ext/parser/extconf.rb
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/json-2.6.2/ext/json/ext/parser/extconf.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/json-2.6.2/ext/json/ext/parser/extconf.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/json-2.6.2/ext/json/ext/parser/extconf.rb
katalyst-govuk-formbuilder-1.9.2 vendor/bundle/ruby/3.3.0/gems/json-2.7.2/ext/json/ext/parser/extconf.rb
harbr-2.8.1 vendor/bundle/ruby/3.2.0/gems/json-2.7.0/ext/json/ext/parser/extconf.rb
cloudsmith-api-2.0.13 vendor/bundle/ruby/2.6.0/gems/json-2.7.2/ext/json/ext/parser/extconf.rb
bison-0.1.0 vendor/bundle/ruby/3.2.0/gems/json-2.7.2/ext/json/ext/parser/extconf.rb
cloudsmith-api-2.0.12 vendor/bundle/ruby/2.6.0/gems/json-2.7.2/ext/json/ext/parser/extconf.rb
json-2.7.2 ext/json/ext/parser/extconf.rb