File: extconf.rb

package info (click to toggle)
ruby-stackprof 0.2.27-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 556 kB
  • sloc: python: 2,494; ruby: 1,264; perl: 920; ansic: 781; javascript: 735; makefile: 4
file content (15 lines) | stat: -rw-r--r-- 385 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require 'mkmf'

if RUBY_ENGINE == 'truffleruby'
  File.write('Makefile', dummy_makefile($srcdir).join(""))
  return
end

if have_func('rb_postponed_job_register_one') &&
   have_func('rb_profile_frames') &&
   have_func('rb_tracepoint_new') &&
   have_const('RUBY_INTERNAL_EVENT_NEWOBJ')
  create_makefile('stackprof/stackprof')
else
  fail 'missing API: are you using ruby 2.1+?'
end