diff -r 67f8bb81b054 -r b2a53d442fd6 cross-plat-dev-utils/build_target.pl --- a/cross-plat-dev-utils/build_target.pl Thu May 13 19:18:16 2010 +0100 +++ b/cross-plat-dev-utils/build_target.pl Sat May 15 14:32:45 2010 +0100 @@ -58,12 +58,19 @@ my $cmd = "$raptor -c tools2 -b $bld_inf @ARGV"; print ">>> Executing: $cmd\n"; my $rc = system($cmd) >> 8; +my $warnings = 0; my @build_logs = glob($log_pattern); open BLDLOG, "<$build_logs[-1]" or die $!; while() { print $_; + ++$warnings, if (//); } close BLDLOG; +print "*** Build failed ***\n", if ($rc); +if ($warnings) { + print "*** Build has warnings ***\n"; + $rc = 1; +} exit $rc;