summaryrefslogtreecommitdiffhomepage
path: root/tasks
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2013-07-27 02:53:02 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2013-07-27 02:53:02 +0900
commite488393cbbdd4fd123d71c6c3bd067f1eee5c37a (patch)
treebcdb115f19288cfb5f4af14493c350233b29350f /tasks
parent63e5a3cfb10e238eaab2a77bcc83acd0d41e60fa (diff)
parentf6d686eae0fce7d93426e0eb188cdc9658dfee75 (diff)
downloadmruby-e488393cbbdd4fd123d71c6c3bd067f1eee5c37a.tar.gz
mruby-e488393cbbdd4fd123d71c6c3bd067f1eee5c37a.zip
Merge branch 'master' of github.com:mruby/mruby
Diffstat (limited to 'tasks')
-rw-r--r--tasks/mruby_build_commands.rake5
1 files changed, 5 insertions, 0 deletions
diff --git a/tasks/mruby_build_commands.rake b/tasks/mruby_build_commands.rake
index e09aee426..19d0b70a2 100644
--- a/tasks/mruby_build_commands.rake
+++ b/tasks/mruby_build_commands.rake
@@ -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