Sha256: 8fe396b3c5ba185e0b53d3ffbb05c1c70fcae6c1db7d6860bc2a6ce85c203d1c

Contents?: true

Size: 385 Bytes

Versions: 6

Compression:

Stored size: 385 Bytes

Contents

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
stackprof-0.2.26 ext/stackprof/extconf.rb
stackprof-0.2.25 ext/stackprof/extconf.rb
stackprof-0.2.24 ext/stackprof/extconf.rb
stackprof-0.2.23 ext/stackprof/extconf.rb
stackprof-0.2.22 ext/stackprof/extconf.rb
stackprof-0.2.21 ext/stackprof/extconf.rb