diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-03-17 02:18:46 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-03-17 02:18:46 +0000 |
commit | 7e4c4e065da30e634f5c9bef240d615b8c25af4d (patch) | |
tree | 14c30cf9e6e7c90735fba9cdfb728fbdc987b01c /tool | |
parent | 36b417bb78eef2b127485e5e1855c282553ad9af (diff) | |
download | ruby-7e4c4e065da30e634f5c9bef240d615b8c25af4d.tar.gz |
transform_mjit_header.rb: read output and errors
* tool/transform_mjit_header.rb (MJITHeader.check_code): read
output and errors than discarding errors. also cl.exe prints
the source file name which is a garbage at this time.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rw-r--r-- | tool/transform_mjit_header.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/transform_mjit_header.rb b/tool/transform_mjit_header.rb index 1f4e25d3aa..f53f1252cb 100644 --- a/tool/transform_mjit_header.rb +++ b/tool/transform_mjit_header.rb @@ -114,8 +114,8 @@ module MJITHeader def self.check_code!(code, cc, cflags, stage) with_code(code) do |path| cmd = "#{cc} #{cflags} #{path}" - unless system(cmd, err: File::NULL) - out = IO.popen(cmd, err: [:child, :out], &:read) + out = IO.popen(cmd, err: [:child, :out], &:read) + unless $?.success? STDERR.puts "error in #{stage} header file:\n#{out}" exit false end |