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:
parent
2c179b12de
commit
e743b36318
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue