[前][次][番号順一覧][スレッド一覧]

ruby-changes:50094

From: kazu <ko1@a...>
Date: Mon, 5 Feb 2018 09:09:14 +0900 (JST)
Subject: [ruby-changes:50094] kazu:r62212 (trunk): Use system option instead of shell redirect

kazu	2018-02-05 09:09:09 +0900 (Mon, 05 Feb 2018)

  New Revision: 62212

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62212

  Log:
    Use system option instead of shell redirect

  Modified files:
    trunk/tool/transform_mjit_header.rb
Index: tool/transform_mjit_header.rb
===================================================================
--- tool/transform_mjit_header.rb	(revision 62211)
+++ tool/transform_mjit_header.rb	(revision 62212)
@@ -74,7 +74,7 @@ module MJITHeader https://github.com/ruby/ruby/blob/trunk/tool/transform_mjit_header.rb#L74
     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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]