X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=bin%2Fblhc;h=d5af8a01983d8f24241b44b596075b6646dea055;hb=19d0b5330bbfc99c924edd98ab603d8032aa3c76;hp=2506398e1ce68e02dd37cd99752f40f1786f43ba;hpb=49540cde704094918ad460f476ef65edb1a3d4f0;p=blhc%2Fblhc.git diff --git a/bin/blhc b/bin/blhc index 2506398..d5af8a0 100755 --- a/bin/blhc +++ b/bin/blhc @@ -24,7 +24,7 @@ use warnings; use Getopt::Long (); use Text::ParseWords (); -our $VERSION = '0.03'; +our $VERSION = '0.04'; # CONSTANTS/VARIABLES @@ -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