Display the command line when mrbc is kicked in the verbose mode.

This commit is contained in:
Masaki Muranaka
2013-03-29 16:48:47 +09:00
parent cb946da787
commit 79ebdb5fbe
+3 -1
View File
@@ -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