Commit 2048831f by David 'Digit' Turner Committed by David Turner

[yarn]: Fix Fuchsia build.

pthread_setname_np() is not provided by the Fuchsia C library so do not try to call it in Thread::setName(). Change-Id: I7db37e6da52d665ff6535d735e9a2da5d9845143 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/35930 Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by: 's avatarBen Clayton <bclayton@google.com> Tested-by: 's avatarDavid Turner <digit@google.com> Presubmit-Ready: David Turner <digit@google.com>
parent 7a19b09a
...@@ -88,7 +88,7 @@ void Thread::setName(const char* fmt, ...) ...@@ -88,7 +88,7 @@ void Thread::setName(const char* fmt, ...)
#if defined(__APPLE__) #if defined(__APPLE__)
pthread_setname_np(name); pthread_setname_np(name);
#else #elif !defined(__Fuchsia__)
pthread_setname_np(pthread_self(), name); pthread_setname_np(pthread_self(), name);
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment