[PATCH] D27375: Let ubsan search UBSAN_SYMBOLIZER_PATH for llvm-symbolizer
Nico Weber via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 2 16:05:59 PST 2016
thakis created this revision.
thakis added reviewers: eugenis, samsonov.
thakis added a subscriber: llvm-commits.
Herald added a subscriber: kubabrecka.
There are ASAN_SYMBOLIZER_PATH and MSAN_SYMBOLIZER_PATH, I found it surprising that UBSAN_SYMBOLIZER_PATH didn't exist.
https://reviews.llvm.org/D27375
Files:
lib/ubsan/ubsan_flags.cc
Index: lib/ubsan/ubsan_flags.cc
===================================================================
--- lib/ubsan/ubsan_flags.cc
+++ lib/ubsan/ubsan_flags.cc
@@ -45,6 +45,7 @@
CommonFlags cf;
cf.CopyFrom(*common_flags());
cf.print_summary = false;
+ cf.external_symbolizer_path = GetEnv("UBSAN_SYMBOLIZER_PATH");
OverrideCommonFlags(cf);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27375.80150.patch
Type: text/x-patch
Size: 368 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161203/af9464a0/attachment.bin>
More information about the llvm-commits
mailing list