X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=bin%2Fblhc;h=9e3c945b4adeb8ceec27e9aba6fab11a05f838c2;hb=9c16fc443d8b897baeed79e596a069b4b27b5111;hp=ba27c55dd08ce6abf0038b239e81204dad01dd18;hpb=88f15389b533468857f01490368376b539a598b3;p=blhc%2Fblhc.git diff --git a/bin/blhc b/bin/blhc index ba27c55..9e3c945 100755 --- a/bin/blhc +++ b/bin/blhc @@ -2,7 +2,7 @@ # Build log hardening check, checks build logs for missing hardening flags. -# Copyright (C) 2012-2022 Simon Ruderich +# Copyright (C) 2012-2023 Simon Ruderich # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -691,7 +691,7 @@ if ($option_help) { } if ($option_version) { print <<"EOF"; -blhc $VERSION Copyright (C) 2012-2022 Simon Ruderich +blhc $VERSION Copyright (C) 2012-2023 Simon Ruderich This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -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) { @@ -1822,7 +1824,7 @@ Ejari.aalto@cante.netE for their valuable input and suggestions. =head1 LICENSE AND COPYRIGHT -Copyright (C) 2012-2022 by Simon Ruderich +Copyright (C) 2012-2023 by Simon Ruderich This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by