[PATCH] D35443: Enable 64-bit Darwin LeakSanitizer by default on AddressSanitizer builds
Francis Ricci via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 17 15:57:50 PDT 2017
fjricci added a comment.
re check-llvm, turns out it was a KP with libedit, re-running with that disabled using LLVM_USE_SANITIZER instead of manual cflags
> I see. But mostly it's important that LSan works against Swift programs/apps rather than the compiler. How about taking some existing swift binaries or building some swift app with Xcode 8 or Xcode 9 (in beta now) and just using LSan against an already built binary. Since LSan is a runtime-only tool, that should work, right?
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.
https://reviews.llvm.org/D35443
More information about the llvm-commits
mailing list