diff options
| author | Alexey Samsonov <samsonov@google.com> | 2013-11-26 16:24:53 +0000 |
|---|---|---|
| committer | Alexey Samsonov <samsonov@google.com> | 2013-11-26 16:24:53 +0000 |
| commit | d5144879f92995af9dfd2fdc4c429d9df1238d71 (patch) | |
| tree | 9507589d1951692c1ec63036ade55a42b254d4c1 /compiler-rt/lib/sanitizer_common/sanitizer_flags.h | |
| parent | b0dc07419bf1d93b0e9a3ac7b54db9d3d4cba5a1 (diff) | |
| download | bcm5719-llvm-d5144879f92995af9dfd2fdc4c429d9df1238d71.tar.gz bcm5719-llvm-d5144879f92995af9dfd2fdc4c429d9df1238d71.zip | |
[Sanitizer] Improve external symbolizer behavior.
1) Don't start external symbolizer subprocess until we actually try to
symbolize anything.
2) Allow to turn off external symbolizer by providing empty ?SAN_SYMBOLIZER_PATH
environment variable.
llvm-svn: 195771
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_flags.h')
| -rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_flags.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_flags.h b/compiler-rt/lib/sanitizer_common/sanitizer_flags.h index 9461dff8033..63da423becf 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_flags.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_flags.h @@ -25,7 +25,8 @@ void ParseFlag(const char *env, const char **flag, const char *name); struct CommonFlags { // If set, use the online symbolizer from common sanitizer runtime. bool symbolize; - // Path to external symbolizer. + // Path to external symbolizer. If it is NULL, symbolizer will be looked for + // in PATH. If it is empty, external symbolizer will not be started. const char *external_symbolizer_path; // Strips this prefix from file paths in error reports. const char *strip_path_prefix; |

