]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
handle the alternate form of -o without a space after the option
authorAndrew Tridgell <tridge@samba.org>
Wed, 10 Apr 2002 07:22:59 +0000 (09:22 +0200)
committerAndrew Tridgell <tridge@samba.org>
Wed, 10 Apr 2002 07:22:59 +0000 (09:22 +0200)
ccache.c

index cc16e12fa73ba713c36b3c8af5a091e15fd239f8..a94196e8f78da68e648a03eaa8f8115c85b2ab3e 100644 (file)
--- a/ccache.c
+++ b/ccache.c
@@ -526,6 +526,12 @@ static void process_args(int argc, char **argv)
                        i++;
                        continue;
                }
+               
+               /* alternate form of -o, with no space */
+               if (strncmp(argv[i], "-o", 2) == 0) {
+                       output_file = &argv[i][2];
+                       continue;
+               }
 
                /* debugging is handled specially, so that we know if we
                   can strip line number info