From 1f0d265a830469598e68583334cc1f88e6f08103 Mon Sep 17 00:00:00 2001 From: dearblue Date: Sun, 6 Mar 2022 15:29:35 +0900 Subject: [PATCH] Raise an exception if there is no benchmark target --- tasks/benchmark.rake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/benchmark.rake b/tasks/benchmark.rake index a10718435..9dbd344e5 100644 --- a/tasks/benchmark.rake +++ b/tasks/benchmark.rake @@ -18,6 +18,8 @@ def plot_file end def plot + raise "no build target to benchmark against" if $dat_files.empty? + opts_file = "#{MRUBY_ROOT}/benchmark/plot.gpl" opts = File.read(opts_file).each_line.to_a.map(&:strip).join(';')