From c00a6af3163584d9bbe5f0742f9ed001c202e564 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 20 May 2018 12:47:00 +0200 Subject: [PATCH] Add missing //o to regex //o is a performance optimization which tells Perl to never recompile the regex (per default it's recompiled if any used variable changes). //o might not be necessary in recent Perl versions but in the past this check had a measurable performance impact. So add it for consistency and because we actually never change the variable. --- bin/blhc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/blhc b/bin/blhc index c2a9d98..193297e 100755 --- a/bin/blhc +++ b/bin/blhc @@ -1073,7 +1073,7 @@ foreach my $file (@ARGV) { # treated as a normal compiler line. next if $line =~ m{^\s*rm\s+}; # Some build systems emit "gcc > file". - next if $line =~ m{$cc_regex_normal\s*>\s*\S+}; + next if $line =~ m{$cc_regex_normal\s*>\s*\S+}o; # Check if additional hardening options were used. Used to ensure # they are used for the complete build. -- 2.45.2