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:
parent
349e7fcb66
commit
da79033a30
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue