ruby-changes:50114
From: nobu <ko1@a...>
Date: Mon, 5 Feb 2018 22:58:53 +0900 (JST)
Subject: [ruby-changes:50114] nobu:r62232 (trunk): transform_mjit_header.rb: same command after error
nobu 2018-02-05 22:58:48 +0900 (Mon, 05 Feb 2018) New Revision: 62232 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62232 Log: transform_mjit_header.rb: same command after error Modified files: trunk/tool/transform_mjit_header.rb Index: tool/transform_mjit_header.rb =================================================================== --- tool/transform_mjit_header.rb (revision 62231) +++ tool/transform_mjit_header.rb (revision 62232) @@ -80,9 +80,10 @@ module MJITHeader https://github.com/ruby/ruby/blob/trunk/tool/transform_mjit_header.rb#L80 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/