diff options
| -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 |
