Commit dcd74902 authored by sky@chromium.org's avatar sky@chromium.org

Makes --analyzer behave same as --analyzer2

Then I can convert recipes back to --analyzer and finally remove
--analyzer2. Oy!

BUG=109173
TEST=none
R=thakis@chromium.org

Review URL: https://codereview.chromium.org/447183006

Cr-Commit-Position: refs/heads/master@{#288360}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288360 0039d316-1c4b-4281-b951-d872f2087c98
parent 3c4c5da1
...@@ -190,13 +190,9 @@ if __name__ == '__main__': ...@@ -190,13 +190,9 @@ if __name__ == '__main__':
args = sys.argv[1:] args = sys.argv[1:]
# TODO(sky): remove analyzer2 once updated recipes. # TODO(sky): remove analyzer2 once updated recipes.
use_analyzer = len(args) and args[0] == '--analyzer' use_analyzer = len(args) and (args[0] == '--analyzer' or
args[0] == '--analyzer2')
if use_analyzer: if use_analyzer:
args.pop(0)
os.environ['GYP_GENERATORS'] = 'analyzer'
args.append('-Gfile_path=' + args.pop(0))
elif len(args) and args[0] == '--analyzer2':
use_analyzer = True
args.pop(0) args.pop(0)
os.environ['GYP_GENERATORS'] = 'analyzer' os.environ['GYP_GENERATORS'] = 'analyzer'
args.append('-Gconfig_path=' + args.pop(0)) args.append('-Gconfig_path=' + args.pop(0))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment