Fix a comment in the code

The -ldl library is missing on NetBSD too, make the comment more generic.

llvm-svn: 320165
This commit is contained in:
Kamil Rytarowski 2017-12-08 17:38:25 +00:00
parent b5a62cc81a
commit bb9a852afd
1 changed files with 1 additions and 1 deletions

View File

@ -544,7 +544,7 @@ void tools::linkSanitizerRuntimeDeps(const ToolChain &TC,
CmdArgs.push_back("-lrt");
}
CmdArgs.push_back("-lm");
// There's no libdl on FreeBSD or RTEMS.
// There's no libdl on all OSes.
if (TC.getTriple().getOS() != llvm::Triple::FreeBSD &&
TC.getTriple().getOS() != llvm::Triple::NetBSD &&
TC.getTriple().getOS() != llvm::Triple::RTEMS)