]> ruderich.org/simon Gitweb - blhc/blhc.git/commitdiff
Be more liberal in non-verbose file name checks.
authorSimon Ruderich <simon@ruderich.org>
Mon, 26 Mar 2012 02:11:58 +0000 (04:11 +0200)
committerSimon Ruderich <simon@ruderich.org>
Mon, 26 Mar 2012 02:11:58 +0000 (04:11 +0200)
bin/blhc

index 7b196a0ccf93a6d6ea521e5f7650847021852c00..bfd4be861d15c8571833e2b43c7e8aa2910bf1be 100755 (executable)
--- 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.
     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) {
         $file = $1;
 
         if ($next_line =~ /\Q$file\E/ and $next_line =~ /$cc_regex/o) {