summaryrefslogtreecommitdiffhomepage
path: root/tasks/mruby_build_commands.rake
diff options
context:
space:
mode:
authorMasaki Muranaka <[email protected]>2013-03-29 16:48:47 +0900
committerMasaki Muranaka <[email protected]>2013-03-29 16:48:47 +0900
commit79ebdb5fbe09cf4dab29b5ee159ce88b3a4d6621 (patch)
treefc837235665ced5210571bde813a106541d5eeda /tasks/mruby_build_commands.rake
parentcb946da78710dbd5760510ffdbe8feec03ab99fe (diff)
downloadmruby-79ebdb5fbe09cf4dab29b5ee159ce88b3a4d6621.tar.gz
mruby-79ebdb5fbe09cf4dab29b5ee159ce88b3a4d6621.zip
Display the command line when mrbc is kicked in the verbose mode.
Diffstat (limited to 'tasks/mruby_build_commands.rake')
-rw-r--r--tasks/mruby_build_commands.rake4
1 files changed, 3 insertions, 1 deletions
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