Skip to content

Commit 3ea744a

Browse files
committed
Enable JSON_DEBUG for parser/extconf.rb
1 parent ded62a5 commit 3ea744a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/json/ext/parser/extconf.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# frozen_string_literal: true
22
require 'mkmf'
33

4+
$defs << "-DJSON_DEBUG" if ENV["JSON_DEBUG"]
45
have_func("rb_enc_interned_str", "ruby/encoding.h") # RUBY_VERSION >= 3.0
56
have_func("rb_hash_new_capa", "ruby.h") # RUBY_VERSION >= 3.2
67
have_func("rb_hash_bulk_insert", "ruby.h") # Missing on TruffleRuby

0 commit comments

Comments
 (0)