X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=bin%2Fblhc;h=829d78252e90548278ee5ca5d12278f9e6b5a41c;hb=2ab1d3168798b8826c78ad7b76f8175d2ef07022;hp=91a5f4943c29076d61bde0904dffc7aa8d38a74a;hpb=53e64de60f08fcb752b1f3ccb41c9e8555be8866;p=blhc%2Fblhc.git diff --git a/bin/blhc b/bin/blhc index 91a5f49..829d782 100755 --- a/bin/blhc +++ b/bin/blhc @@ -138,7 +138,7 @@ my $file_extension_regex = qr/ \s \S+ # Filename without extension. \. - ([^\\.,;:\s]+) # File extension. + ([^\/\\.,;:\s]+)# File extension. (?=\s|\\) # At end of word. Can't use \b because some files have non # word characters at the end and because \b matches double # extensions (like .cpp.o). Works always as all lines are @@ -331,7 +331,14 @@ sub is_non_verbose_build { } # False positives. + # + # C++ compiler setting. return 0 if $line =~ /^\s*C\+\+.+?:\s+(?:yes|no)\s*$/; + # "Compiling" with no file name. + if ($line =~ /^\s*(?:C|c)ompiling\s+(.+?)(?:\.\.\.)?$/) { + # $file_extension_regex may need spaces around the filename. + return 0 if not " $1 " =~ /$file_extension_regex/o; + } my $file = $1;