[PATCH] D40326: Fix static link on debian
Joerg Sonnenberger via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 28 13:23:39 PST 2017
On Mon, Nov 27, 2017 at 06:16:50PM +0000, Chris Bieneman via Phabricator via llvm-commits wrote:
> It's undesirable for user code that is using std::thread to requirer
> the user to list pthread as a dependency, and even worse if the pthread
> library needs to be linked with extra flags.
I disagree on this. The presence of pthread often adds overhead in other
places, so making it required to link it in explicitly certainly makes
sense. What doesn't make sense is to randomly crash. I.e. there is a
huge difference between sane failure modes ("you can't create threads")
and crashing.
Joerg
More information about the llvm-commits
mailing list