summaryrefslogtreecommitdiff
path: root/lib/lsan/lsan.cc
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2015-07-21 23:03:13 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2015-07-21 23:03:13 +0000
commit4ca862074014614bfdd8c7b96af7aac77d21ab8b (patch)
treee3bcf30b5ada43faf1e2a2f3d3f3b2e1f1929fe5 /lib/lsan/lsan.cc
parent65f9d1f55e1cf912413d0af54b23ee418abc92f4 (diff)
downloadcompiler-rt-4ca862074014614bfdd8c7b96af7aac77d21ab8b.tar.gz
[sanitizer] Implement include_if_exists with process name substitution.
include_if_exists=/path/to/sanitizer/options reads flags from the file if it is present. "%b" in the include file path (for both variants of the flag) is replaced with the basename of the main executable. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@242853 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/lsan/lsan.cc')
-rw-r--r--lib/lsan/lsan.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/lsan/lsan.cc b/lib/lsan/lsan.cc
index 6018f7bf6..91c29b9c1 100644
--- a/lib/lsan/lsan.cc
+++ b/lib/lsan/lsan.cc
@@ -69,6 +69,7 @@ extern "C" void __lsan_init() {
return;
lsan_init_is_running = true;
SanitizerToolName = "LeakSanitizer";
+ CacheBinaryName();
InitializeFlags();
InitCommonLsan();
InitializeAllocator();