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