diff options
author | fergus.henderson <fergus.henderson@01de4be4-8c4a-0410-9132-4925637da917> | 2008-05-12 23:07:27 +0000 |
---|---|---|
committer | fergus.henderson <fergus.henderson@01de4be4-8c4a-0410-9132-4925637da917> | 2008-05-12 23:07:27 +0000 |
commit | ae14d1a984ce4d257fa5e239c719531055651010 (patch) | |
tree | 0a7620f2ab0857687d7d763433d370ce8199a17c /include_server | |
parent | 8fb035d40d9a5d66787dfa2fd26086611029d3ca (diff) | |
download | distcc-ae14d1a984ce4d257fa5e239c719531055651010.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
git-svn-id: http://distcc.googlecode.com/svn/trunk@205 01de4be4-8c4a-0410-9132-4925637da917
Diffstat (limited to 'include_server')
-rwxr-xr-x | include_server/parse_command.py | 4 |
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: |