X-Git-Url: https://ruderich.org/simon/gitweb/?p=blhc%2Fblhc.git;a=blobdiff_plain;f=bin%2Fblhc;h=bfa954b50f2b8974ee1dbd06e855f5ee8ef668ee;hp=bfd4be861d15c8571833e2b43c7e8aa2910bf1be;hb=36c9f05a7471f321df247f0237ac8efa81d69207;hpb=0c04e1006d384e806204b31b15dd5e6d6a31497a diff --git a/bin/blhc b/bin/blhc index bfd4be8..bfa954b 100755 --- a/bin/blhc +++ b/bin/blhc @@ -655,6 +655,9 @@ FILE: foreach my $file (@ARGV) { # Remove everything until and including the compiler command. Makes # checks easier and faster. $line =~ s/^.*?$cc_regex//o; + # "([...] test.c)" is not detected as 'test.c' - fix this by removing + # the brace and similar characters. + $line =~ s/['")]+$//; # Skip unnecessary tests when only preprocessing. my $flag_preprocess = 0;