ruby/ext/json/parser/extconf.rb
2024-11-06 23:31:30 +01:00

12 lines
437 B
Ruby

# frozen_string_literal: true
require 'mkmf'
have_func("rb_enc_interned_str", "ruby.h") # RUBY_VERSION >= 3.0
have_func("rb_hash_new_capa", "ruby.h") # RUBY_VERSION >= 3.2
have_func("rb_gc_mark_locations", "ruby.h") # Missing on TruffleRuby
have_func("rb_hash_bulk_insert", "ruby.h") # Missing on TruffleRuby
have_func("rb_category_warn", "ruby.h") # Missing on TruffleRuby
append_cflags("-std=c99")
create_makefile 'json/ext/parser'