[clang] [compiler-rt] Move interceptors for libresolv functions to MSan (PR #119071)
Aaron Puchert via cfe-commits
cfe-commits at lists.llvm.org
Sat Dec 7 07:09:48 PST 2024
================
@@ -1410,7 +1410,7 @@ void tools::linkSanitizerRuntimeDeps(const ToolChain &TC,
// libresolv.a, even if exists, is an empty archive to satisfy POSIX -lresolv
// requirement.
if (TC.getTriple().isOSLinux() && !TC.getTriple().isAndroid() &&
- !TC.getTriple().isMusl())
+ !TC.getTriple().isMusl() && TC.getSanitizerArgs(Args).needsMsanRt())
----------------
aaronpuchert wrote:
This is not very efficient, because `getSanitizerArgs` actually extracts them from `Args` every time it is called. I've started working on a change to fix that.
https://github.com/llvm/llvm-project/pull/119071
More information about the cfe-commits
mailing list