ruby-changes:64090
From: Koichi <ko1@a...>
Date: Fri, 11 Dec 2020 11:57:59 +0900 (JST)
Subject: [ruby-changes:64090] ad6573163f (master): add RUNOPT and RUNOPT0 for dev rules.
https://git.ruby-lang.org/ruby.git/commit/?id=ad6573163f From ad6573163f4a7b7eedb904f2f6f730c3cd2669e3 Mon Sep 17 00:00:00 2001 From: Koichi Sasada <ko1@a...> Date: Fri, 11 Dec 2020 11:52:19 +0900 Subject: 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) diff --git a/common.mk b/common.mk index 09f7db2..1841e84 100644 --- a/common.mk +++ b/common.mk @@ -1207,10 +1207,10 @@ $(srcdir)/ext/etc/constdefs.h: $(srcdir)/ext/etc/depend https://github.com/ruby/ruby/blob/trunk/common.mk#L1207 ## 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: https://github.com/ruby/ruby/blob/trunk/common.mk#L1253 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 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/