]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - make/run-cc.pl
Fix timer crashes: relying on an iterator after adding to/resorting the vector probab...
[user/henk/code/inspircd.git] / make / run-cc.pl
index 4c07632f3fdd1562aa428a8f52279a40c654bce2..71a921c61e7bab3c441593c6a4ae7abe9b994b12 100755 (executable)
@@ -86,8 +86,13 @@ foreach my $n (@ARGV)
        {
                $action = "BUILD";
                $name = $n;
+               last;
        }
-       elsif ($n !~ /\.^-c/)
+       elsif ($n eq "-o")
+       {
+               $action = $name = $n;
+       }
+       elsif ($name eq "-o")
        {
                $action = "LINK";
                $name = $n;