ruby-changes:51675
From: k0kubun <ko1@a...>
Date: Sun, 8 Jul 2018 23:08:31 +0900 (JST)
Subject: [ruby-changes:51675] k0kubun:r63887 (trunk): common.mk: load prelude on `make benchmark`
k0kubun 2018-07-08 23:08:25 +0900 (Sun, 08 Jul 2018) New Revision: 63887 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63887 Log: 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. Modified files: trunk/common.mk Index: common.mk =================================================================== --- common.mk (revision 63886) +++ common.mk (revision 63887) @@ -1119,12 +1119,12 @@ OPTS = https://github.com/ruby/ruby/blob/trunk/common.mk#L1119 # 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: -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/