HomePhabricator

Do not use pthread_setname_np() if we don't have GLIBC or Android.

Authored by Vasileios Kalintiris <Vasileios.Kalintiris@imgtec.com> on Sep 22 2015, 7:52 AM.

Description

Do not use pthread_setname_np() if we don't have GLIBC or Android.

Summary:
pthread_setname_np() is a nonstandard GNU extension and isn't available
in every C library. Check before it's usage that GLIBC is available or
that we are targeting Android.

Reviewers: clayborg, ovyalov

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D13019

llvm-svn: 248280

Event Timeline

Vasileios Kalintiris <Vasileios.Kalintiris@imgtec.com> committed rG747372b91aac: Do not use pthread_setname_np() if we don't have GLIBC or Android. (authored by Vasileios Kalintiris <Vasileios.Kalintiris@imgtec.com>).Sep 22 2015, 7:52 AM