jroelofs added a comment.

> If you want to get your build working, I suggest you just remove the setting 
> code.

@labath I have my local build working, but I don't want to carry local patches 
if possible. How about the original patch, which adds the glibc 2.12 check:

   void HostThreadLinux::SetName(lldb::thread_t thread, llvm::StringRef name) {
  -#if (defined(__GLIBC__) && defined(_GNU_SOURCE)) || defined(__ANDROID__)
  +#if (((__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 12)) && \
  +     defined(_GNU_SOURCE)) || defined(__ANDROID__)
     ::pthread_setname_np(thread, name.data());
   #else
     (void)thread;

It's no worse than what was already there, makes forward progress in supporting 
this particular host platform, and avoids a bunch more yak shaving.


https://reviews.llvm.org/D30844



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to