[Solaris] Silence -pthread warning on Solaris
authorFedor Sergeev <fedor.sergeev@azul.com>
Tue, 6 Feb 2018 13:21:12 +0000 (13:21 +0000)
committerFedor Sergeev <fedor.sergeev@azul.com>
Tue, 6 Feb 2018 13:21:12 +0000 (13:21 +0000)
commit33c86f87400c6517418a93068e507547b7582744
tree134fbc642d90e7bafa2b8bc000eacf1248e6eed2
parent81fcf865be23275a1421df5cdeeed8651259817c
[Solaris] Silence -pthread warning on Solaris

Summary:
During make check-all on Solaris, I see several instances of this warning:

clang-6.0: warning: argument unused during compilation: '-pthread' [-Wunused-command-line-argument]

Since Solaris 10, libpthread has been folded into libc, so there's nothing to do.  gcc
just ignores -pthread here.  Darwin claims the option to silence the warning, and
this patch follows that lead.

Reviewers: rsmith, fedor.sergeev

Reviewed By: fedor.sergeev

Subscribers: cfe-commits, fedor.sergeev

Differential Revision: https://reviews.llvm.org/D41242

llvm-svn: 324344
clang/lib/Driver/ToolChains/Solaris.cpp