Print mrbc command on verbose mode

parent 20d01f11
...@@ -327,7 +327,9 @@ module MRuby ...@@ -327,7 +327,9 @@ module MRuby
infiles.each do |f| infiles.each do |f|
_pp "MRBC", f.relative_path, nil, :indent => 2 _pp "MRBC", f.relative_path, nil, :indent => 2
end end
IO.popen("#{filename @command} #{@compile_options % {:funcname => funcname}} #{filename(infiles).join(' ')}", 'r+') do |io| cmd = "#{filename @command} #{@compile_options % {:funcname => funcname}} #{filename(infiles).join(' ')}"
print("#{cmd}\n") if $verbose
IO.popen(cmd, 'r+') do |io|
out.puts io.read out.puts io.read
end end
# if mrbc execution fail, drop the file # if mrbc execution fail, drop the file
......
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