https://github.com/yerzham updated 
https://github.com/llvm/llvm-project/pull/168449

>From 856fee97ae4b0f9fa982951f5b2d1c44d0a10492 Mon Sep 17 00:00:00 2001
From: Yerzhan Zhamashev <[email protected]>
Date: Wed, 21 Jan 2026 16:50:41 +0200
Subject: [PATCH] libunwind: exclude __declspec from wasm build

---
 libunwind/src/config.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libunwind/src/config.h b/libunwind/src/config.h
index f017403fa2234..6014a37e27212 100644
--- a/libunwind/src/config.h
+++ b/libunwind/src/config.h
@@ -75,7 +75,8 @@
   #define _LIBUNWIND_EXPORT
   #define _LIBUNWIND_HIDDEN
 #else
-  #if !defined(__ELF__) && !defined(__MACH__) && !defined(_AIX)
+  #if !defined(__ELF__) && !defined(__MACH__) && !defined(_AIX) &&             
\
+      !defined(__wasm__)
     #define _LIBUNWIND_EXPORT __declspec(dllexport)
     #define _LIBUNWIND_HIDDEN
   #else

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to