| Index: build/android/gyp/util/build_utils.py
|
| diff --git a/build/android/gyp/util/build_utils.py b/build/android/gyp/util/build_utils.py
|
| index 65b1a643c26a2ca920ff176af40bfcad85057f3d..140e214dcee0ab27d651ff88150225582b1ea1d1 100644
|
| --- a/build/android/gyp/util/build_utils.py
|
| +++ b/build/android/gyp/util/build_utils.py
|
| @@ -323,9 +323,13 @@ def GetPythonDependencies():
|
|
|
|
|
| def AddDepfileOption(parser):
|
| - parser.add_option('--depfile',
|
| - help='Path to depfile. This must be specified as the '
|
| - 'action\'s first output.')
|
| + # TODO(agrieve): Get rid of this once we've moved to argparse.
|
| + if hasattr(parser, 'add_option'):
|
| + func = parser.add_option
|
| + else:
|
| + func = parser.add_argument
|
| + func('--depfile',
|
| + help='Path to depfile. Must be specified as the action\'s first output.')
|
|
|
|
|
| def WriteDepfile(path, dependencies):
|
|
|