From 247abd10e4b384dda8303047190443af033df23f Mon Sep 17 00:00:00 2001 From: vchigrin Date: Sat, 1 Mar 2025 21:28:55 +0300 Subject: 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 --- util/system/thread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util/system/thread.cpp') 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"); -- cgit v1.3