summaryrefslogtreecommitdiff
path: root/include_server
diff options
context:
space:
mode:
authorfergus.henderson <fergushenderson@users.noreply.github.com>2008-05-12 23:07:27 +0000
committerfergus.henderson <fergushenderson@users.noreply.github.com>2008-05-12 23:07:27 +0000
commit7592f2c57692efb6419eec66db5e304fb63f6574 (patch)
tree0a7620f2ab0857687d7d763433d370ce8199a17c /include_server
parent1d64462d74b18c78579c6c703bb87b785df8de15 (diff)
downloaddistcc-git-7592f2c57692efb6419eec66db5e304fb63f6574.tar.gz
Handle gcc's "-MF" option in the include server.
This option only affects the name of the ".d" file, not the include closure, so the include server doesn't need to do anything for this option; the actual handling of this option in distcc is done by the distcc client, which already handles it correctly. This change just stops the include server from throwing an exception whenever '-MF' is encountered. Reviewers: Nils Klarlund
Diffstat (limited to 'include_server')
-rwxr-xr-xinclude_server/parse_command.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/include_server/parse_command.py b/include_server/parse_command.py
index 87bec61..1a5fcc3 100755
--- a/include_server/parse_command.py
+++ b/include_server/parse_command.py
@@ -92,7 +92,7 @@ def _RaiseNotImplemented(name, comment=''):
# Below, ps is a ParseState object.
# TODO(csilvers): check for arg[0] == '=' for iquote, isystem
CPP_OPTIONS_MAYBE_TWO_WORDS = {
- '-MF': lambda ps, arg: _RaiseNotImplemented('-MF'),
+ '-MF': lambda ps, arg: None,
'-MT': lambda ps, arg: None,
'-MQ': lambda ps, arg: None,
'-include': lambda ps, arg: ps.include_files.append(arg),
@@ -361,7 +361,7 @@ def ParseCommandArgs(args, current_dir, fp_map, dir_map, compiler_defaults,
except IndexError:
raise NotCoveredError("No argument found for option '%s'" % args[i])
continue
-
+
# Deal with the have-arg options with the arg as the 2nd word ("-MF foo").
action = CPP_OPTIONS_TWO_WORDS.get(args[i])
if action: