This is an archive of the discontinued LLVM Phabricator instance.

[Solaris] Silence -pthread warning on Solaris
ClosedPublic

Authored by ro on Dec 14 2017, 7:53 AM.

Details

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.

Diff Detail

Repository
rC Clang

Event Timeline

ro created this revision.Dec 14 2017, 7:53 AM
This revision is now accepted and ready to land.Dec 21 2017, 10:22 AM
ro added a comment.Jan 13 2018, 6:34 AM

Thanks. Could you please commit this for me?

ro added a comment.Feb 5 2018, 2:25 PM

Could anyone please commit this for me?

Thanks.

Rainer
This revision was automatically updated to reflect the committed changes.