From 1f4541cb98db06c17bfc902dc61a72ee955887d3 Mon Sep 17 00:00:00 2001 From: k0kubun Date: Sun, 8 Jul 2018 14:08:25 +0000 Subject: common.mk: load prelude on `make benchmark` because benchmark/bm_io_nonblock_noex.rb and benchmark/bm_io_nonblock_noex2.rb are using IO#write_nonblock and it's defined in prelude. miniruby can't run the benchmark without prelude. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- common.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common.mk b/common.mk index ce3a01eb55..07e03bd2d5 100644 --- a/common.mk +++ b/common.mk @@ -1119,12 +1119,12 @@ OPTS = # This command compares trunk and built-ruby and 2.2.2 benchmark: miniruby$(EXEEXT) PHONY $(BASERUBY) $(srcdir)/benchmark/driver.rb -v \ - --executables="$(COMPARE_RUBY) -I$(srcdir)/lib -I. -I$(EXTOUT)/common --disable-gem; built-ruby::$(MINIRUBY) --disable-gem" \ + --executables="$(COMPARE_RUBY) -I$(srcdir)/lib -I. -I$(EXTOUT)/common --disable-gem; built-ruby::$(MINIRUBY) -r$(srcdir)/prelude --disable-gem" \ --pattern='bm_' --directory=$(srcdir)/benchmark $(OPTS) benchmark-each: miniruby$(EXEEXT) PHONY $(BASERUBY) $(srcdir)/benchmark/driver.rb -v \ - --executables="$(COMPARE_RUBY) -I$(srcdir)/lib -I. -I$(EXTOUT)/common --disable-gem; built-ruby::$(MINIRUBY) --disable-gem" \ + --executables="$(COMPARE_RUBY) -I$(srcdir)/lib -I. -I$(EXTOUT)/common --disable-gem; built-ruby::$(MINIRUBY) -r$(srcdir)/prelude --disable-gem" \ --pattern=$(ITEM) --directory=$(srcdir)/benchmark $(OPTS) run.gdb: -- cgit v1.2.3