mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Display the command line when mrbc is kicked in the verbose mode.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user