mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Load fake.rb at BTESTRUBY
So that `mkmf` checks work from `make run`, and also remove duplicate `$(MINIRUBYOPT)` which is used in `$(MINIRUBY)`.
This commit is contained in:
parent
d9c6f8d45c
commit
97ce030954
Notes:
git
2022-04-05 22:36:00 +09:00
4 changed files with 8 additions and 7 deletions
|
@ -765,7 +765,7 @@ $(arch)-fake.rb: $(srcdir)/template/fake.rb.in $(tooldir)/generic_erb.rb version
|
|||
|
||||
btest: $(TEST_RUNNABLE)-btest
|
||||
no-btest: PHONY
|
||||
yes-btest: fake miniruby$(EXEEXT) PHONY
|
||||
yes-btest: yes-fake miniruby$(EXEEXT) PHONY
|
||||
$(ACTIONS_GROUP)
|
||||
$(Q)$(exec) $(BOOTSTRAPRUBY) "$(srcdir)/bootstraptest/runner.rb" --ruby="$(BTESTRUBY) $(RUN_OPTS)" $(OPTS) $(TESTOPTS) $(BTESTS)
|
||||
$(ACTIONS_ENDGROUP)
|
||||
|
@ -777,7 +777,7 @@ yes-btest-ruby: prog PHONY
|
|||
$(Q)$(exec) $(RUNRUBY) "$(srcdir)/bootstraptest/runner.rb" --ruby="$(PROGRAM) -I$(srcdir)/lib $(RUN_OPTS)" -q $(OPTS) $(TESTOPTS) $(BTESTS)
|
||||
$(ACTIONS_ENDGROUP)
|
||||
|
||||
rtest: fake miniruby$(EXEEXT) PHONY
|
||||
rtest: yes-fake miniruby$(EXEEXT) PHONY
|
||||
$(ACTIONS_GROUP)
|
||||
$(Q)$(exec) $(BOOTSTRAPRUBY) "$(srcdir)/bootstraptest/runner.rb" --ruby="$(BTESTRUBY) $(RUN_OPTS)" --sets=ractor -v
|
||||
$(ACTIONS_ENDGROUP)
|
||||
|
@ -1243,7 +1243,7 @@ $(srcdir)/ext/etc/constdefs.h: $(srcdir)/ext/etc/depend
|
|||
|
||||
##
|
||||
|
||||
run: fake miniruby$(EXEEXT) PHONY
|
||||
run: yes-fake miniruby$(EXEEXT) PHONY
|
||||
$(BTESTRUBY) $(RUNOPT0) $(TESTRUN_SCRIPT) $(RUNOPT)
|
||||
|
||||
runruby: $(PROGRAM) PHONY
|
||||
|
@ -1252,7 +1252,7 @@ runruby: $(PROGRAM) PHONY
|
|||
runirb: $(PROGRAM) PHONY
|
||||
RUBY_ON_BUG='gdb -x $(srcdir)/.gdbinit -p' $(RUNRUBY) $(RUNOPT0) -r irb -e 'IRB.start("make runirb")' $(RUNOPT)
|
||||
|
||||
parse: fake miniruby$(EXEEXT) PHONY
|
||||
parse: yes-fake miniruby$(EXEEXT) PHONY
|
||||
$(BTESTRUBY) --dump=parsetree_with_comment,insns $(TESTRUN_SCRIPT)
|
||||
|
||||
bisect: PHONY
|
||||
|
|
|
@ -147,8 +147,7 @@ RUNRUBY = @RUNRUBY@ $(RUN_OPTS)
|
|||
# RUNRUBY_DEBUGGER:: debugging option for runruby.rb
|
||||
RUNRUBY_DEBUGGER = --debugger='gdb -x run.gdb --quiet --args'
|
||||
XRUBY = @XRUBY@
|
||||
BTESTRUBY = @BTESTRUBY@\
|
||||
$(MINIRUBYOPT)
|
||||
BTESTRUBY = @BTESTRUBY@ -r./$(arch)-fake
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
# shareable_constant_value: literal
|
||||
<%
|
||||
arg = {}
|
||||
while /\A(\w+)=(.*)/ =~ ARGV[0]
|
||||
|
|
|
@ -385,7 +385,7 @@ BOOTSTRAPRUBY = $(BASERUBY)
|
|||
BOOTSTRAPRUBY = $(MINIRUBY)
|
||||
XRUBY = $(RUNRUBY)
|
||||
!endif
|
||||
BTESTRUBY = $(MINIRUBY)
|
||||
BTESTRUBY = $(MINIRUBY) -r./$(arch)-fake
|
||||
!ifndef RUBY
|
||||
RUBY = ruby
|
||||
!endif
|
||||
|
|
Loading…
Add table
Reference in a new issue