]> git.ipfire.org Git - thirdparty/git.git/blobdiff - contrib/buildsystems/engine.pl
engine.pl: Fix a recent breakage of the buildsystem generator
[thirdparty/git.git] / contrib / buildsystems / engine.pl
index d506717bfd304a1aaf4a02ad262ee96a0e468771..8f890fb5a5ff99c6a0bd5811b9982ebd447739d1 100644 (file)
@@ -135,6 +135,11 @@ sub parseMakeOutput
             }
         } while($ate_next);
 
+        if ($text =~ /^test /) {
+            # options to test (eg -o) may be mistaken for linker options
+            next;
+        }
+
         if($text =~ / -c /) {
             # compilation
             handleCompileLine($text, $line);
@@ -180,9 +185,6 @@ sub parseMakeOutput
 #        } elsif ($text =~ /generate-cmdlist\.sh/) {
 #            # command for generating list of commands
 #
-#        } elsif ($text =~ /^test / && $text =~ /|| rm -f /) {
-#            # commands removing executables, if they exist
-#
 #        } elsif ($text =~ /new locations or Tcl/) {
 #            # command for detecting Tcl/Tk changes
 #