Rakefile in stackprof-0.2.20 vs Rakefile in stackprof-0.2.21

- old
+ new

@@ -5,13 +5,23 @@ t.libs << "test" t.libs << "lib" t.test_files = FileList["test/**/test_*.rb"] end -require "rake/extensiontask" +if RUBY_ENGINE == "truffleruby" + task :compile do + # noop + end -Rake::ExtensionTask.new("stackprof") do |ext| - ext.ext_dir = "ext/stackprof" - ext.lib_dir = "lib/stackprof" + task :clean do + # noop + end +else + require "rake/extensiontask" + + Rake::ExtensionTask.new("stackprof") do |ext| + ext.ext_dir = "ext/stackprof" + ext.lib_dir = "lib/stackprof" + end end task default: %i(compile test)