From: Simon Ruderich Date: Mon, 26 Mar 2012 02:11:58 +0000 (+0200) Subject: Be more liberal in non-verbose file name checks. X-Git-Tag: 0.01~51 X-Git-Url: https://ruderich.org/simon/gitweb/?p=blhc%2Fblhc.git;a=commitdiff_plain;h=0c04e1006d384e806204b31b15dd5e6d6a31497a Be more liberal in non-verbose file name checks. --- diff --git a/bin/blhc b/bin/blhc index 7b196a0..bfd4be8 100755 --- a/bin/blhc +++ b/bin/blhc @@ -317,7 +317,7 @@ sub is_non_verbose_build { if (defined $file) { # Get filename, we can't use the complete path as only parts of it are # used in the real compiler command. - $file =~ m{/([a-zA-Z0-9._-]+)$}; + $file =~ m{/([^/\s]+)$}; $file = $1; if ($next_line =~ /\Q$file\E/ and $next_line =~ /$cc_regex/o) {