summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfergus.henderson <fergus.henderson@01de4be4-8c4a-0410-9132-4925637da917>2008-07-30 02:27:24 +0000
committerfergus.henderson <fergus.henderson@01de4be4-8c4a-0410-9132-4925637da917>2008-07-30 02:27:24 +0000
commit66b8e22f4576f3ca50ebbdfb1a5444c5e592a3a1 (patch)
treeccec26be7d4151c5be0050e015d3bd1f4bd2df9b
parent2dae1ae58e6d9a4b5723d2ea7e6847f39d30e094 (diff)
downloaddistcc-66b8e22f4576f3ca50ebbdfb1a5444c5e592a3a1.tar.gz
Fix issue 13 <http://code.google.com/p/distcc/issues/detail?id=13>:
allow distcc to distribute commands that use "-MF<filename>" rather than "-MF <filename>", and likewise for -MT and -MQ. git-svn-id: http://distcc.googlecode.com/svn/trunk@568 01de4be4-8c4a-0410-9132-4925637da917
-rw-r--r--src/arg.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/arg.c b/src/arg.c
index f58b76f..6f814b9 100644
--- a/src/arg.c
+++ b/src/arg.c
@@ -167,8 +167,11 @@ int dcc_scan_args(char *argv[], char **input_file, char **output_file,
* nothing by themselves. */
} else if (!strcmp(a, "-MF") || !strcmp(a, "-MT") ||
!strcmp(a, "-MQ")) {
- /* as above but with extra argument */
+ /* As above but with extra argument. */
i++;
+ } else if (!strncmp(a, "-MF", 3) || !strncmp(a, "-MT", 3) ||
+ !strncmp(a, "-MQ", 3)) {
+ /* As above, without extra argument. */
} else if (a[1] == 'M') {
/* -M(anything else) causes the preprocessor to
produce a list of make-style dependencies on