[PATCH] D35443: Enable 64-bit Darwin LeakSanitizer by default on AddressSanitizer builds
Kuba (Brecka) Mracek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 17 17:39:05 PDT 2017
kubamracek added a comment.
> LSan is runtime-only, but I believe the linker needs to know about it (otherwise the binary wouldn't know to load the lsan dso for the interceptors etc). -fsanitize=leak is a no-op at compile time, but it's used at link time afaik.
DYLD_INSERT_LIBRARIES=<path_to_lsan_library> ./an-already-built-binary
should do the trick.
https://reviews.llvm.org/D35443
More information about the llvm-commits
mailing list