File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 12
12
end and
13
13
have_header ( "vm_core.h" ) and have_header ( "iseq.h" ) and have_header ( "insns.inc" ) and
14
14
have_header ( "insns_info.inc" ) and have_header ( "eval_intern.h" )
15
- }
16
-
17
- if RUBY_REVISION >= 26959 # rb_iseq_compile_with_option was added an argument filepath
15
+ if checking_for ( checking_message ( "if rb_iseq_compile_with_option was added an argument filepath" ) ) do
16
+ try_compile ( <<SRC )
17
+ #include <ruby.h>
18
+ #include "vm_core.h"
19
+ extern VALUE rb_iseq_new_main(NODE *node, VALUE filename, VALUE filepath);
20
+ SRC
21
+ end
18
22
$defs << '-DRB_ISEQ_COMPILE_5ARGS'
19
- end
23
+ end
24
+ }
20
25
21
26
dir_config ( "ruby" )
22
27
name = "ruby_debug"
23
28
if ( ENV [ 'rvm_ruby_string' ] )
24
- dest_dir = Config ::CONFIG [ "rubyhdrdir" ]
29
+ dest_dir = RbConfig ::CONFIG [ "rubyhdrdir" ]
25
30
with_cppflags ( "-I" + dest_dir ) {
26
31
if hdrs . call
27
32
create_makefile ( name )
You can’t perform that action at this time.
0 commit comments