diff options
| author | fleuria <[email protected]> | 2013-07-25 03:47:39 +0800 |
|---|---|---|
| committer | fleuria <[email protected]> | 2013-07-25 03:47:39 +0800 |
| commit | f4ae43249793259b4b6d4c79ca8a091c65de30ef (patch) | |
| tree | e99a21320115a25b376971ecc894682525af515e /tasks | |
| parent | 620e323d156378f776b9914c45d460699ebfc41f (diff) | |
| download | mruby-f4ae43249793259b4b6d4c79ca8a091c65de30ef.tar.gz mruby-f4ae43249793259b4b6d4c79ca8a091c65de30ef.zip | |
if mrbc.run fail, abort rake
Diffstat (limited to 'tasks')
| -rw-r--r-- | tasks/mruby_build_commands.rake | 5 |
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 |
