]> ruderich.org/simon Gitweb - blhc/blhc.git/commitdiff
"Compiling" with no filename is not a non-verbose build.
authorSimon Ruderich <simon@ruderich.org>
Sun, 8 Apr 2012 16:03:06 +0000 (18:03 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sun, 8 Apr 2012 16:03:06 +0000 (18:03 +0200)
bin/blhc
t/logs/verbose-build

index 91a5f4943c29076d61bde0904dffc7aa8d38a74a..1a3d55c55f7ef70ee7d929a170e27428f1a602a4 100755 (executable)
--- a/bin/blhc
+++ b/bin/blhc
@@ -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;
 
index aca060b7151f8cbae6251921c0567f48cc2c7d62..1dcb18fd585fd3ce460345d1dfff59133d7a37eb 100644 (file)
@@ -87,3 +87,9 @@ g++ -g -O2 -fPIC --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=fo
 cd /tmp/test/src && /usr/bin/c++ -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat-security -Werror=format-security -o CMakeFiles/test-verbose.dir/verbose.cpp.o -c -D_FORTIFY_SOURCE=2 /tmp/test/src/test-verbose/verbose.cpp
 [ 83%] Building C object src/CMakeFiles/test-verbose-c.dir/verbose-c.c.o
 cd /tmp/test/src && /usr/bin/gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -o CMakeFiles/test-verbose-c.dir/verbose-c.c.o -c -D_FORTIFY_SOURCE=2 /tmp/test/src/test-verbose-c/verbose-c.c
+
+# False positives.
+Compiling Test properties
+Compiling Test sources
+Compiling with GCC now generates lots of new warnings.
+Compiling outside source directory - copying needed files