diff options
author | Koichi Sasada <ko1@atdot.net> | 2020-12-11 11:52:19 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2020-12-11 11:57:25 +0900 |
commit | ad6573163f4a7b7eedb904f2f6f730c3cd2669e3 (patch) | |
tree | 787e2d70f4de8480a9292a04059b7833fd4d8d16 /common.mk | |
parent | 56918578ea48ef3bc6a5f27f884fb2cccbe02c06 (diff) |
add RUNOPT and RUNOPT0 for dev rules.
run, runruby, ... accept RUNOPT and RUNOPT0 configuration to pass
some commandline argument like that:
$(BTESTRUBY) $(RUNOPT0) $(TESTRUN_SCRIPT) $(RUNOPT)
RUNOPT0 is options for ruby interpreter (-w, -v, ...)
RUNOPT is options for the script (ARGV/ARGF)
Diffstat (limited to 'common.mk')
-rw-r--r-- | common.mk | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1207,10 +1207,10 @@ $(srcdir)/ext/etc/constdefs.h: $(srcdir)/ext/etc/depend ## run: fake miniruby$(EXEEXT) PHONY - $(BTESTRUBY) $(TESTRUN_SCRIPT) $(RUNOPT) + $(BTESTRUBY) $(RUNOPT0) $(TESTRUN_SCRIPT) $(RUNOPT) runruby: $(PROGRAM) PHONY - $(RUNRUBY) $(TESTRUN_SCRIPT) + $(RUNRUBY) $(RUNOPT0) $(TESTRUN_SCRIPT) $(RUNOPT) parse: fake miniruby$(EXEEXT) PHONY $(BTESTRUBY) --dump=parsetree_with_comment,insns $(TESTRUN_SCRIPT) @@ -1253,18 +1253,18 @@ run.gdb: gdb: miniruby$(EXEEXT) run.gdb PHONY - gdb -x run.gdb --quiet --args $(MINIRUBY) $(TESTRUN_SCRIPT) + gdb -x run.gdb --quiet --args $(MINIRUBY) $(RUNOPT0) $(TESTRUN_SCRIPT) $(RUNOPT) gdb-ruby: $(PROGRAM) run.gdb PHONY - $(Q) $(RUNRUBY_COMMAND) $(RUNRUBY_DEBUGGER) -- $(TESTRUN_SCRIPT) + $(Q) $(RUNRUBY_COMMAND) $(RUNRUBY_DEBUGGER) -- $(RUNOPT0) $(TESTRUN_SCRIPT) $(RUNOPT) LLDB_INIT = command script import -r $(srcdir)/misc/lldb_cruby.py lldb: miniruby$(EXEEXT) PHONY - lldb -o '$(LLDB_INIT)' miniruby$(EXEEXT) -- $(TESTRUN_SCRIPT) + lldb -o '$(LLDB_INIT)' miniruby$(EXEEXT) -- $(RUNOPT0) $(TESTRUN_SCRIPT) $(RUNOPT) lldb-ruby: $(PROGRAM) PHONY - lldb $(enable_shared:yes=-o 'target modules add ${LIBRUBY_SO}') -o '$(LLDB_INIT)' $(PROGRAM) -- $(TESTRUN_SCRIPT) + lldb $(enable_shared:yes=-o 'target modules add ${LIBRUBY_SO}') -o '$(LLDB_INIT)' $(PROGRAM) -- $(RUNOPT0) $(TESTRUN_SCRIPT) $(RUNOPT) DISTPKGS = gzip,zip,all PKGSDIR = tmp |