From 79ebdb5fbe09cf4dab29b5ee159ce88b3a4d6621 Mon Sep 17 00:00:00 2001 From: Masaki Muranaka Date: Fri, 29 Mar 2013 16:48:47 +0900 Subject: Display the command line when mrbc is kicked in the verbose mode. --- tasks/mruby_build_commands.rake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tasks') diff --git a/tasks/mruby_build_commands.rake b/tasks/mruby_build_commands.rake index b647ccf98..0effa648b 100644 --- a/tasks/mruby_build_commands.rake +++ b/tasks/mruby_build_commands.rake @@ -249,9 +249,11 @@ module MRuby def run(out, infiles, funcname) @command ||= @build.mrbcfile - IO.popen("#{filename @command} #{@compile_options % {:funcname => funcname}}", 'r+') do |io| + commandline = "#{filename @command} #{@compile_options % {:funcname => funcname}}" + IO.popen(commandline, 'r+') do |io| [infiles].flatten.each do |f| _pp "MRBC", f.relative_path, nil, :indent => 2 + log "#{commandline} ## #{f}" io.write IO.read(f) end io.close_write -- cgit v1.2.3