1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

transform_mjit_header.rb: same command after error

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2018-02-05 13:58:48 +00:00
parent 349e7fcb66
commit da79033a30

View file

@ -80,9 +80,10 @@ module MJITHeader
Tempfile.open(['', '.c'], mode: File::BINARY) do |f|
f.puts code
f.close
unless system("#{cc} #{cflags} #{f.path}", err: File::NULL)
cmd = "#{cc} #{cflags} #{f.path}"
unless system(cmd, err: File::NULL)
STDERR.puts "error in #{stage} header file:"
system("#{cc} #{cflags} #{f.path}")
system(cmd)
exit false
end
end