]> ruderich.org/simon Gitweb - blhc/blhc.git/blobdiff - bin/blhc
Fix false postive when using `nvcc`
[blhc/blhc.git] / bin / blhc
index ba27c55dd08ce6abf0038b239e81204dad01dd18..b6889ae3ca51162e50d5c93f321d18235dc46a0a 100755 (executable)
--- a/bin/blhc
+++ b/bin/blhc
@@ -1081,6 +1081,8 @@ foreach my $file (@ARGV) {
                                \s.+\s
                                -I\S+/mkspecs/[a-z]+-g\++(?:-64)?
                                \s}x;
+            # nvcc is not a regular C compiler
+            next if $line =~ m{^\S+/bin/nvcc\s};
             # Ignore false positives when the line contains only CC=gcc but no
             # other gcc command.
             if ($line =~ /(.*)CC=$cc_regex_full(.*)/o) {