From 5198daf33be8661d5478f24fcfa4706acbe56df2 Mon Sep 17 00:00:00 2001 From: gecko_reverse Date: Tue, 16 Sep 2008 20:45:42 +0000 Subject: [PATCH] cocoa port rakefile only stops compile for errors --- desmume/src/cocoa/Rakefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/desmume/src/cocoa/Rakefile b/desmume/src/cocoa/Rakefile index 68769e90f..969b243cb 100644 --- a/desmume/src/cocoa/Rakefile +++ b/desmume/src/cocoa/Rakefile @@ -97,9 +97,12 @@ task :compile do puts indent*2 + line end - raise StandardError, filename + ' did not compile!' unless stderr.readlines.each do |err| + error = false + stderr.readlines.each do |err| + error = true if err =~ /:\s*error\s*:/i puts indent*2 + err - end.empty? + end + raise StandardError, "Didn't compile!" if error end end