summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2021-10-28 14:31:02 +0900
committerKoichi Sasada <ko1@atdot.net>2021-10-28 14:31:02 +0900
commit77544caaf46503b8e56d5b37703bfd1e9fb3cbc6 (patch)
tree899f0d09c269a513efeda39c7e52e2c05c90ed8f
parentefcf18f13ecffe5cdbe74cc532246366f60d7858 (diff)
add `make runirb` rule
it's start irb on built ruby (not installed ruby).
-rw-r--r--common.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/common.mk b/common.mk
index 1fc59227108..96e452fc6c0 100644
--- a/common.mk
+++ b/common.mk
@@ -1245,6 +1245,9 @@ run: fake miniruby$(EXEEXT) PHONY
runruby: $(PROGRAM) PHONY
RUBY_ON_BUG='gdb -x $(srcdir)/.gdbinit -p' $(RUNRUBY) $(RUNOPT0) $(TESTRUN_SCRIPT) $(RUNOPT)
+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
$(BTESTRUBY) --dump=parsetree_with_comment,insns $(TESTRUN_SCRIPT)