if (defined $file) {
# Get filename, we can't use the complete path as only parts of it are
# used in the real compiler command.
if (defined $file) {
# Get filename, we can't use the complete path as only parts of it are
# used in the real compiler command.
# Remove everything until and including the compiler command. Makes
# checks easier and faster.
$line =~ s/^.*?$cc_regex//o;
# Remove everything until and including the compiler command. Makes
# checks easier and faster.
$line =~ s/^.*?$cc_regex//o;