X-Git-Url: https://ruderich.org/simon/gitweb/?p=blhc%2Fblhc.git;a=blobdiff_plain;f=bin%2Fblhc;h=d5af8a01983d8f24241b44b596075b6646dea055;hp=783ae73f27b66eb68df2fbc3c8e9c1635ebbfd2d;hb=19d0b5330bbfc99c924edd98ab603d8032aa3c76;hpb=f840b1b9362096ce7a0b8813a37555d934d21887 diff --git a/bin/blhc b/bin/blhc index 783ae73..d5af8a0 100755 --- a/bin/blhc +++ b/bin/blhc @@ -852,7 +852,11 @@ foreach my $file (@ARGV) { next if $line =~ /^\s*(?:Host\s+)?(?:C(?:\+\+)?\s+)? [Cc]ompiler[\s.]*:?\s+ /x; - next if $line =~ /^\s*(?:- )?(?:HOST_)?(?:CC|CXX)\s*=\s*$cc_regex_full\s*$/o; + next if $line =~ m{^\s*(?:-\s)?(?:HOST_)?(?:CC|CXX) + \s*=\s*$cc_regex_full + # optional compiler options, don't allow + # "everything" here to prevent false negatives + \s*(?:\s-\S+)*\s*$}xo; # `moc-qt4`/`moc-qt5` contain '-I.../linux-g++' in their command # line (or similar for other architectures) which gets recognized # as a compiler line, but `moc-qt*` is only a preprocessor for Qt