Commit e2303b60 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #1105 from monaka/pr-display-more-information-in-verbose-mode

Display the command line when mrbc is kicked in the verbose mode.
parents 6b67f083 79ebdb5f
...@@ -249,9 +249,11 @@ module MRuby ...@@ -249,9 +249,11 @@ module MRuby
def run(out, infiles, funcname) def run(out, infiles, funcname)
@command ||= @build.mrbcfile @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| [infiles].flatten.each do |f|
_pp "MRBC", f.relative_path, nil, :indent => 2 _pp "MRBC", f.relative_path, nil, :indent => 2
log "#{commandline} ## #{f}"
io.write IO.read(f) io.write IO.read(f)
end end
io.close_write io.close_write
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment