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

Use system option instead of shell redirect

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kazu 2018-02-05 00:09:09 +00:00
parent 2c179b12de
commit e743b36318

View file

@ -74,7 +74,7 @@ module MJITHeader
Tempfile.open(['', '.c']) do |f|
f.puts code
f.close
unless system("#{cc} #{cflags} #{f.path} 2>#{File::NULL}")
unless system("#{cc} #{cflags} #{f.path}", err: File::NULL)
STDERR.puts "error in #{stage} header file:"
system("#{cc} #{cflags} #{f.path}")
exit false