]> ruderich.org/simon Gitweb - blhc/blhc.git/blobdiff - bin/blhc
Ignore ', " and ) at the end of the line.
[blhc/blhc.git] / bin / blhc
index bfd4be861d15c8571833e2b43c7e8aa2910bf1be..bfa954b50f2b8974ee1dbd06e855f5ee8ef668ee 100755 (executable)
--- 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;