]> ruderich.org/simon Gitweb - blhc/blhc.git/blobdiff - bin/blhc
Fix another false positives from cmake not setting CPPFLAGS
[blhc/blhc.git] / bin / blhc
index 2e48bbc063c6bc466ee6c6ceaae4eba42929e9b4..26826f07a0abe87740087d16b1a3b63e8233b59f 100755 (executable)
--- a/bin/blhc
+++ b/bin/blhc
@@ -1124,7 +1124,7 @@ foreach my $file (@ARGV) {
             # Embedded `gcc -print-*` commands
             next if $line =~ /`$cc_regex_normal\s*[^`]*-print-\S+`/;
             # cmake checking for compiler flags without setting CPPFLAGS
-            next if $line =~ m{^\s*/usr/(bin|lib)/(ccache/)?c\+\+ -dM -E -c /usr/share/cmake-\S+/Modules/CMakeCXXCompilerABI\.cpp};
+            next if $line =~ m{^\s*/usr/(bin|lib)/(ccache/)?c\+\+ (?:-std=\S+ )?-dM -E -c /usr/share/cmake-\S+/Modules/CMakeCXXCompilerABI\.cpp};
             # Some rustc lines look like linker commands
             next if $cargo and $line =~ /$rustc_regex/o;