diff options
| author | vchigrin <[email protected]> | 2025-03-01 21:28:55 +0300 |
|---|---|---|
| committer | vchigrin <[email protected]> | 2025-03-01 21:53:09 +0300 |
| commit | 247abd10e4b384dda8303047190443af033df23f (patch) | |
| tree | 34922b57d1c390ba3c4cee835fc50c93a97e8433 /util/system/thread.cpp | |
| parent | 3eebf10660ed2ff1ef6682102002cacff4aa17df (diff) | |
feat envoy: Fix linking errors in util when building for WASM platform.
Fix linking errors due to missed _Unwind_Backtrace symbol.
Fix linking error due to missed CurrentThreadId implementation.
commit_hash:ba09595a0e5feaefe5ad506c0005815f4c11a153
Diffstat (limited to 'util/system/thread.cpp')
| -rw-r--r-- | util/system/thread.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/system/thread.cpp b/util/system/thread.cpp index cdde02fa3e3..7c880a2909b 100644 --- a/util/system/thread.cpp +++ b/util/system/thread.cpp @@ -535,11 +535,11 @@ TCurrentThreadLimits::TCurrentThreadLimits() noexcept : StackBegin(nullptr) , StackLength(0) { -#if defined(_linux_) || defined(_cygwin_) || defined(_freebsd_) +#if defined(_linux_) || defined(_cygwin_) || defined(_freebsd_) || defined(__EMSCRIPTEN__) pthread_attr_t attr; pthread_attr_init(&attr); - #if defined(_linux_) || defined(_cygwin_) + #if defined(_linux_) || defined(_cygwin_) || defined(__EMSCRIPTEN__) Y_ABORT_UNLESS(pthread_getattr_np(pthread_self(), &attr) == 0, "pthread_getattr failed"); #else Y_ABORT_UNLESS(pthread_attr_get_np(pthread_self(), &attr) == 0, "pthread_attr_get_np failed"); |
