aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tool/transform_mjit_header.rb4
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