[libunwind] [libunwind] Exlcude wasm build from using __declspec export (PR #168449)
Yerzhan Zhamashev via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 13 00:07:38 PST 2026
https://github.com/yerzham updated https://github.com/llvm/llvm-project/pull/168449
>From 852c8a2ebc0fdb1e781591e3e6e08d3a539bcfc3 Mon Sep 17 00:00:00 2001
From: Yerzhan Zhamashev <yerzhan at novel.systems>
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
More information about the cfe-commits
mailing list