Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1383)

Unified Diff: build/android/asan_symbolize.py

Issue 1666593002: Add --output-directory flag to build/android/asan_symbolize.py (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@output-dir-stack
Patch Set: rebase Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/asan_symbolize.py
diff --git a/build/android/asan_symbolize.py b/build/android/asan_symbolize.py
index 04dba57be9650ee9743336956624fae32a092efe..87fce88a6820c2dca2cad25010c432086852faf7 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,13 @@ 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',
+ help='Path to the root build directory.')
options, _ = parser.parse_args()
+
+ if options.output_directory:
+ constants.SetOutputDirectory(options.output_directory)
+
if options.logcat:
asan_input = file(options.logcat, 'r')
else:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698