From a478f5c6485df6520be9e08832fbf8f1e0a39d15 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 8 Apr 2012 18:03:06 +0200 Subject: [PATCH] "Compiling" with no filename is not a non-verbose build. --- bin/blhc | 7 +++++++ t/logs/verbose-build | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/bin/blhc b/bin/blhc index 91a5f49..1a3d55c 100755 --- 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; diff --git a/t/logs/verbose-build b/t/logs/verbose-build index aca060b..1dcb18f 100644 --- a/t/logs/verbose-build +++ b/t/logs/verbose-build @@ -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 -- 2.45.2