File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed
Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change 11require "mkmf"
22require "ruby_core_source"
33
4- if RUBY_VERSION < "1.9"
5- STDERR . print ( "Ruby version is too old\n " )
6- exit ( 1 )
7- end
8-
94hdrs = proc {
105 have_struct_member ( "rb_method_entry_t" , "body" , "method.h" )
116 have_header ( "vm_core.h" ) and have_header ( "iseq.h" ) and have_header ( "insns.inc" ) and
2116end
2217
2318dir_config ( "ruby" )
24- if !Ruby_core_source ::create_makefile_with_core ( hdrs , "ruby_debug" )
19+ name = "ruby_debug"
20+ if ( ENV [ 'rvm_ruby_string' ] )
21+ dest_dir = Config ::CONFIG [ "rubyhdrdir" ]
22+ with_cppflags ( "-I" + dest_dir ) {
23+ if hdrs . call
24+ create_makefile ( name )
25+ exit 0
26+ end
27+ }
28+ end
29+ if !Ruby_core_source ::create_makefile_with_core ( hdrs , name )
2530 STDERR . print ( "Makefile creation failed\n " )
2631 STDERR . print ( "*************************************************************\n \n " )
2732 STDERR . print ( " NOTE: For Ruby 1.9 installation instructions, please see:\n \n " )
You can’t perform that action at this time.
0 commit comments