]> ruderich.org/simon Gitweb - blhc/blhc.git/blobdiff - bin/blhc
Ignore compiler when used as file suffixes.
[blhc/blhc.git] / bin / blhc
index 666c2afc207ddbb6bbacb4d997c107d9306a0df9..9aa0133b22720b3bdd21897bdbc1cb29c09d9f3c 100755 (executable)
--- a/bin/blhc
+++ b/bin/blhc
@@ -32,7 +32,7 @@ our $VERSION = '0.01';
 
 # Regex to catch compiler commands.
 my $cc_regex = qr/(?:[a-z0-9_]+-(?:linux-|kfreebsd-)?gnu(?:eabi|eabihf)?-)?
-                  (?:(?<!\.)cc|gcc|g\+\+|c\+\+)
+                  (?<!\.)(?:cc|gcc|g\+\+|c\+\+)
                   (?:-[\d.]+)?/x;
 # Regex to catch (GCC) compiler warnings.
 my $warning_regex = qr/^(.+?):([0-9]+):[0-9]+: warning: (.+?) \[(.+?)\]$/;