llvm: lldb: no pthread_setname_np() on musl.

This commit is contained in:
Juan RP 2015-05-07 12:12:52 +02:00
parent 0ac59645b0
commit 932238485b
2 changed files with 13 additions and 1 deletions

View file

@ -69,3 +69,15 @@
#endif
}
--- source/Host/linux/HostThreadLinux.cpp.orig 2015-05-07 12:09:24.855925281 +0200
+++ source/Host/linux/HostThreadLinux.cpp 2015-05-07 12:12:10.495735534 +0200
@@ -30,7 +30,9 @@ HostThreadLinux::HostThreadLinux(lldb::t
void
HostThreadLinux::SetName(lldb::thread_t thread, llvm::StringRef name)
{
+#if defined(__ANDROID__) || defined(__GLIBC__)
::pthread_setname_np(thread, name.data());
+#endif
}
void

View file

@ -1,4 +1,4 @@
# Template file for 'llvm'
# Template file for 'llvm'
pkgname=llvm
version=3.6.0
wrksrc="llvm-${version}.src"