diff options
| author | Masaki Muranaka <[email protected]> | 2013-03-29 16:48:47 +0900 |
|---|---|---|
| committer | Masaki Muranaka <[email protected]> | 2013-03-29 16:48:47 +0900 |
| commit | 79ebdb5fbe09cf4dab29b5ee159ce88b3a4d6621 (patch) | |
| tree | fc837235665ced5210571bde813a106541d5eeda /tasks | |
| parent | cb946da78710dbd5760510ffdbe8feec03ab99fe (diff) | |
| download | mruby-79ebdb5fbe09cf4dab29b5ee159ce88b3a4d6621.tar.gz mruby-79ebdb5fbe09cf4dab29b5ee159ce88b3a4d6621.zip | |
Display the command line when mrbc is kicked in the verbose mode.
Diffstat (limited to 'tasks')
| -rw-r--r-- | tasks/mruby_build_commands.rake | 4 |
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 |
