mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
if mrbc.run fail, abort rake
This commit is contained in:
@@ -262,6 +262,11 @@ module MRuby
|
||||
IO.popen("#{filename @command} #{@compile_options % {:funcname => funcname}} #{filename(infiles).join(' ')}", 'r+') do |io|
|
||||
out.puts io.read
|
||||
end
|
||||
# if mrbc execution fail, drop the file
|
||||
if not $?.exitstatus
|
||||
File.delete(out.path)
|
||||
exit -1
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user