This is an archive of the discontinued LLVM Phabricator instance.

Driver: Do not warn about unused -pthread when linking on darwin
ClosedPublic

Authored by MatzeB on Feb 2 2017, 4:56 PM.

Details

Summary

While there is nothing to do at link time to get pthreads support on
darwin, specifying -pthread is fine and should not produce a warning
about unused arguments.

Diff Detail

Repository
rL LLVM

Event Timeline

MatzeB created this revision.Feb 2 2017, 4:56 PM
MatzeB updated this revision to Diff 87023.Feb 3 2017, 2:10 PM
MatzeB updated this revision to Diff 87024.Feb 3 2017, 2:16 PM

Address review comments:

  • Simplify test
  • Only perform the ClaimAll() if we actually link libc, so we get the warning back when combining -nostdlib/-nodefaultlibs with -pthread
MatzeB accepted this revision.Sep 26 2017, 2:10 PM
This revision is now accepted and ready to land.Sep 26 2017, 2:10 PM
MatzeB closed this revision.Sep 26 2017, 2:10 PM

This was accepted on the mailinglist and committed in r294065