[clang] [compiler-rt] Move interceptors for libresolv functions to MSan (PR #119071)
Vitaly Buka via cfe-commits
cfe-commits at lists.llvm.org
Sun Dec 8 19:36:03 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())
----------------
vitalybuka wrote:
I propose do not change this part at all, or in a separate PR
https://github.com/llvm/llvm-project/pull/119071
More information about the cfe-commits
mailing list