forked from OSchip/llvm-project
[tsan] Add environment variable TSAN_SYMBOLIZER_PATH as we do in other sanitizers
ASan, LSan, MSan and UBSan all allow to use environment variable `*SAN_SYMBOLIZER_PATH` to pass the symbolizer path, this patch add `TSAN_SYMBOLIZER_PATH` to TSan. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D108911
This commit is contained in:
parent
86c8f395ae
commit
f10d003b0c
|
@ -55,6 +55,7 @@ void InitializeFlags(Flags *f, const char *env, const char *env_option_name) {
|
||||||
// Override some common flags defaults.
|
// Override some common flags defaults.
|
||||||
CommonFlags cf;
|
CommonFlags cf;
|
||||||
cf.CopyFrom(*common_flags());
|
cf.CopyFrom(*common_flags());
|
||||||
|
cf.external_symbolizer_path = GetEnv("TSAN_SYMBOLIZER_PATH");
|
||||||
cf.allow_addr2line = true;
|
cf.allow_addr2line = true;
|
||||||
if (SANITIZER_GO) {
|
if (SANITIZER_GO) {
|
||||||
// Does not work as expected for Go: runtime handles SIGABRT and crashes.
|
// Does not work as expected for Go: runtime handles SIGABRT and crashes.
|
||||||
|
|
Loading…
Reference in New Issue