ext/stackprof/extconf.rb in stackprof-0.2.20 vs ext/stackprof/extconf.rb in stackprof-0.2.21
- old
+ new
@@ -1,5 +1,11 @@
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')