diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-10-19 11:12:03 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-10-19 11:12:03 +0900 |
| commit | 7957f75bd8d0eb84daeb78108fd529021f9354e2 (patch) | |
| tree | b27966a18377128bcd6257e80106ef69ebb69c5e | |
| parent | 20d01f118ddb7e7f2f36926a7a3db35573611857 (diff) | |
| parent | 4877dbf2a99152c41c3d9069523cfa19f21f51ac (diff) | |
| download | mruby-7957f75bd8d0eb84daeb78108fd529021f9354e2.tar.gz mruby-7957f75bd8d0eb84daeb78108fd529021f9354e2.zip | |
Merge pull request #4779 from take-cheeze/print_mrbc_cmd
Print mrbc command on verbose mode
| -rw-r--r-- | lib/mruby/build/command.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/mruby/build/command.rb b/lib/mruby/build/command.rb index bff250c93..6e41e3db2 100644 --- a/lib/mruby/build/command.rb +++ b/lib/mruby/build/command.rb @@ -327,7 +327,9 @@ module MRuby infiles.each do |f| _pp "MRBC", f.relative_path, nil, :indent => 2 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 end # if mrbc execution fail, drop the file |
