File tree 2 files changed +27
-0
lines changed
2 files changed +27
-0
lines changed File renamed without changes.
Original file line number Diff line number Diff line change
1
+ ## Description
2
+ Fork of [ ruby\_ core\_ source] ( https://github.com/mark-moseley/ruby_core_source )
3
+ that uses included Ruby headers (\* .h and \* .inc) instead of downloading
4
+ them. Used by [ debugger] ( http://github.com/cldwalker/debugger ) .
5
+
6
+ ##Usage
7
+
8
+ Example use in extconf.rb:
9
+
10
+ ``` ruby
11
+ require ' ruby_core_source'
12
+ hdrs = proc { have_header(" vm_core.h" ) and have_header(" iseq.h" ) }
13
+ dir_config(" ruby" ) # allow user to pass in non-standard core include directory
14
+ if ! Ruby_core_source ::create_makefile_with_core(hdrs, " foo" )
15
+ # error
16
+ exit (1 )
17
+ end
18
+ ```
19
+
20
+ To add another ruby version's source to this gem's directory:
21
+
22
+ $ rake add_source VERSION=1.9.3-p0
23
+
24
+ ## LICENSE
25
+ Ruby library code is MIT license, see LICENSE. Included ruby headers,
26
+ lib/debugger/ruby\_ core\_ source/, are mostly Ruby license, see RUBY\_ LICENSE. Some headers have
27
+ their own licenses, see LEGAL.
You can’t perform that action at this time.
0 commit comments