# CONSTANTS/VARIABLES
# Regex to catch compiler commands.
-my $cc_regex = qr/(?:x86_64-linux-gnu-)?(?:(?<!\.)cc|gcc|g\+\+|c\+\+)(?:-[\d.]+)?/;
+my $cc_regex = qr/(?:[a-z0-9_]+-(?:linux|kfreebsd)-gnu(?:eabi|eabihf)?-)?
+ (?:(?<!\.)cc|gcc|g\+\+|c\+\+)
+ (?:-[\d.]+)?/x;
# Regex to catch (GCC) compiler warnings.
my $warning_regex = qr/^(.+?):([0-9]+):[0-9]+: warning: (.+?) \[(.+?)\]$/;
C Compiler: gcc -std=gnu99
+ Compiler: arm-linux-gnueabi-gcc
+ Compiler: arm-linux-gnueabihf-gcc
+ Compiler: i486-linux-gnu-gcc
+ Compiler: ia64-linux-gnu-gcc
+ Compiler: x86_64-kfreebsd-gnu-gcc
+ Compiler: i486-kfreebsd-gnu-gcc
+ Compiler: mips-linux-gnu-gcc
+ Compiler: mipsel-linux-gnu-gcc
+ Compiler: powerpc-linux-gnu-gcc
+ Compiler: s390-linux-gnu-gcc
+ Compiler: sparc-linux-gnu-gcc
+
- General Compile FLAGS
- CC = mpicc
- CXX = g++