[PATCH] D41242: [Solaris] Silence -pthread warning on Solaris
Fedor Sergeev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 6 05:23:20 PST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rC324344: [Solaris] Silence -pthread warning on Solaris (authored by fedor.sergeev, committed by ).
Repository:
rC Clang
https://reviews.llvm.org/D41242
Files:
lib/Driver/ToolChains/Solaris.cpp
Index: lib/Driver/ToolChains/Solaris.cpp
===================================================================
--- lib/Driver/ToolChains/Solaris.cpp
+++ lib/Driver/ToolChains/Solaris.cpp
@@ -71,6 +71,11 @@
CmdArgs.push_back(
Args.MakeArgString(getToolChain().GetFilePath("ld.so.1")));
}
+
+ // libpthread has been folded into libc since Solaris 10, no need to do
+ // anything for pthreads. Claim argument to avoid warning.
+ Args.ClaimAllArgs(options::OPT_pthread);
+ Args.ClaimAllArgs(options::OPT_pthreads);
}
if (Output.isFilename()) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41242.132976.patch
Type: text/x-patch
Size: 581 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180206/014d19e1/attachment.bin>
More information about the cfe-commits
mailing list