Replace separators only if it is necessary

This commit is contained in:
Nobuyoshi Nakada 2026-07-13 16:18:00 +09:00 committed by Nobuyoshi Nakada
parent 83d8b8dc53
commit 75ccb2085c
Notes: git 2026-07-13 08:59:27 +00:00

View File

@ -1452,7 +1452,9 @@ benchmark: miniruby$(EXEEXT) update-benchmark-driver PHONY
$(BASERUBY) -rrubygems -I$(srcdir)/benchmark/lib \
-e "files = %w[$(ARGS)]" \
-e "files = Dir.glob(['$(ITEM)', '*$(ITEM)*.yml', '*$(ITEM)*.rb'], base: '$(srcdir)/benchmark').reject(&:empty?).sort.uniq.map {|f| '$(srcdir)/benchmark/' + f} if files.empty?" \
-e "ARGV.map! {|a| a.start_with?('--executables') ? a.gsub(92.chr, '/') : a}" \
-e "if sep = File::ALT_SEPARATOR" \
-e "ARGV.map! {|a| a.start_with?('--executables') ? a.gsub(sep, '/') : a}" \
-e "end" \
-e "ARGV.concat(files)" \
-e "load '$(srcdir)/benchmark/benchmark-driver/exe/benchmark-driver'" -- \
--executables="compare-ruby::$(COMPARE_RUBY) -I$(EXTOUT)/common --disable-gem" \