Use standardized approach for get build configuration name

This commit is contained in:
dearblue
2022-03-06 15:27:50 +09:00
parent 2dff7ed6a2
commit dfddb04063
+2 -5
View File
@@ -9,11 +9,8 @@ def bm_files
end
def build_config_name
if !ENV['MRUBY_CONFIG'].to_s.empty?
File.basename(ENV['MRUBY_CONFIG'], '.rb').gsub('build_config_', '')
else
"bm"
end
path = MRuby::Build.mruby_config_path
File.basename(path, '.rb').gsub('build_config_', '')
end
def plot_file