Changeset 226378 in webkit


Ignore:
Timestamp:
Jan 3, 2018 4:42:21 PM (6 years ago)
Author:
Simon Fraser
Message:

filter-build-webkit filters out useful compiler error lines
https://bugs.webkit.org/show_bug.cgi?id=179864

Reviewed by Tim Horton.

Don't filter out lines that contain information about build errors by always showing lines
after a line that contains "note:" or "error:".

  • Scripts/filter-build-webkit:

(shouldShowSubsequentLine):
(shouldIgnoreLine):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r226376 r226378  
     12018-01-03  Simon Fraser  <simon.fraser@apple.com>
     2
     3        filter-build-webkit filters out useful compiler error lines
     4        https://bugs.webkit.org/show_bug.cgi?id=179864
     5
     6        Reviewed by Tim Horton.
     7
     8        Don't filter out lines that contain information about build errors by always showing lines
     9        after a line that contains "note:" or "error:".
     10
     11        * Scripts/filter-build-webkit:
     12        (shouldShowSubsequentLine):
     13        (shouldIgnoreLine):
     14
    1152018-01-03  Michael Catanzaro  <mcatanzaro@igalia.com>
    216
  • trunk/Tools/Scripts/filter-build-webkit

    r214866 r226378  
    230230}
    231231
     232sub shouldShowSubsequentLine($)
     233{
     234    my ($line) = @_;
     235
     236    return 1 if $line =~ /referenced from:$/;
     237    return 1 if $line =~ /(note:|error:)/;
     238   
     239    return 0;
     240}
     241
    232242sub shouldIgnoreLine($$)
    233243{
     
    282292    } else {
    283293        return 1 if $line =~ /^(touch|perl|cat|rm -f|bison|flex|python|\/usr\/bin\/g\+\+|\/bin\/ln|gperf|echo|sed|if \[ \-f|WebCore\/generate-export-file|write-file|chmod) /;
    284         return 1 if $line =~ /^    / && $previousLine !~ /referenced from:$/;
     294        return 1 if $line =~ /^    / && !shouldShowSubsequentLine($previousLine);
    285295        return 1 if $line =~ /^printf /;
    286296        return 1 if $line =~ /^offlineasm: Nothing changed/;
Note: See TracChangeset for help on using the changeset viewer.