Chromium Code Reviews| Index: build/android/asan_symbolize.py |
| diff --git a/build/android/asan_symbolize.py b/build/android/asan_symbolize.py |
| index 04dba57be9650ee9743336956624fae32a092efe..b190ff427964da0e45483ed743cdb6b167a8fbe2 100755 |
| --- a/build/android/asan_symbolize.py |
| +++ b/build/android/asan_symbolize.py |
| @@ -11,6 +11,7 @@ import os |
| import re |
| import sys |
| +from pylib import constants |
| from pylib.constants import host_paths |
| # Uses symbol.py from third_party/android_platform, not python's. |
| @@ -93,7 +94,16 @@ def main(): |
| parser.add_option('-l', '--logcat', |
| help='File containing adb logcat output with ASan stacks. ' |
| 'Use stdin if not specified.') |
| + parser.add_option('--output-directory', |
|
pasko
2016/02/03 10:16:25
Plz add --out-dir as an alias for consistency with
|
| + help='Path to the root build directory.') |
| options, _ = parser.parse_args() |
| + |
| + constants.require_explicit_output_dir = True |
| + if options.output_directory: |
| + constants.SetOutputDirectory(options.output_directory) |
| + # Do an up-front test that the output directory is known. |
| + constants.GetOutDirectory() |
| + |
| if options.logcat: |
| asan_input = file(options.logcat, 'r') |
| else: |