This is an archive of the discontinued LLVM Phabricator instance.

[Solaris] Only define _REENTRANT if -pthread
ClosedPublic

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

Details

Summary

When looking at lib/Basic/Targets/OSTargets.h, I noticed that _REENTRANT is defined
unconditionally on Solaris, unlike all other targets and what either Studio cc (only define
it with -mt) or gcc (only define it with -pthread) do.

This patch (on top of https://reviews.llvm.org/D41240) follows that lead.

Diff Detail

Repository
rC Clang

Event Timeline

ro created this revision.Dec 14 2017, 7:48 AM
This revision is now accepted and ready to land.May 11 2018, 3:30 PM
This revision was automatically updated to reflect the committed changes.