]> ruderich.org/simon Gitweb - blhc/blhc.git/blobdiff - bin/blhc
Add support for versioned gcc version (e.g. gcc-4.6).
[blhc/blhc.git] / bin / blhc
index 65334db8de2643a61b40a7d4327f489b61ec4547..67dce4ae358fcf5cd00ddd224fe4463101920b23 100755 (executable)
--- a/bin/blhc
+++ b/bin/blhc
@@ -153,7 +153,7 @@ sub is_non_verbose_build {
 # CONSTANTS/VARIABLES
 
 # Regex to catch compiler commands.
-my $cc_regex = qr/(?:(?<!\.)cc|(?:x86_64-linux-gnu-)?gcc|g\+\+|c\+\+)/;
+my $cc_regex = qr/(?:x86_64-linux-gnu-)?(?:(?<!\.)cc|gcc|g\+\+|c\+\+)(?:-[\d.]+)?/;
 # Regex to catch (GCC) compiler warnings.
 my $warning_regex = qr/^(.+?):([0-9]+):[0-9]+: warning: (.+?) \[(.+?)\]$/;