lib/mruby/build/command.rb: narrow down poppen mode

This commit is contained in:
alpha.netzilla
2023-05-05 19:23:18 +09:00
parent 28a29c6da1
commit 3409c1f309
+1 -1
View File
@@ -341,7 +341,7 @@ module MRuby
opt << " -s" if static
cmd = %["#{filename @command}" #{opt} #{filename(infiles).map{|f| %["#{f}"]}.join(' ')}]
puts cmd if Rake.verbose
IO.popen(cmd, 'r+') do |io|
IO.popen(cmd, 'r') do |io|
out.puts io.read
end
# if mrbc execution fail, drop the file