X-Git-Url: https://ruderich.org/simon/gitweb/?p=blhc%2Fblhc.git;a=blobdiff_plain;f=bin%2Fblhc;h=47d464c1b9b66f752bbf3e2a7ac54e75f957ff1d;hp=210f0ac5a0511f8fcb829493c491b07d94015c9f;hb=1ba912b03dd1df9a4068b567939ea2d100c56f20;hpb=fe9d0d4971ff25e278b744ad89e3724ee42f67b0 diff --git a/bin/blhc b/bin/blhc index 210f0ac..47d464c 100755 --- a/bin/blhc +++ b/bin/blhc @@ -268,7 +268,10 @@ foreach my $line (@input) { # Ignore false positives. # # ./configure summary. - next if $line =~ /^Compiler:\s+(cc|gcc|g\+\+|c\+\+)$/; + my $cc_regex = qr/(cc|(x86_64-linux-gnu-)?gcc|g\+\+|c\+\+)/; + next if $line =~ /^\s*(C|c)ompiler[\s.]*:\s+$cc_regex(\s-std=[a-z0-9:+]+)?\s*$/ + or $line =~ /^\s*- (CC|CXX)\s*=\s*$cc_regex\s*$/ + or $line =~ /^\s*-- Check for working (C|CXX) compiler: /; # Is this a compiler or linker command? my $compiler = 1;