]> granicus.if.org Git - clang/commit
[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)
commit8cfe0cc8789aaad2b49983e28661b9db5ab3fb50
tree575b9e6649e877d9557b68aab268a011e9f48121
parent10aaabb25a193b5f3898f887e7f54e8bd05d5cda
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@324344 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains/Solaris.cpp