[libunwind] [libunwind] Enable wasm target for exceptions (PR #168449)
Yerzhan Zhamashev via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 21 06:36:30 PST 2026
https://github.com/yerzham updated https://github.com/llvm/llvm-project/pull/168449
>From 0f23156f872061bd983a84d164352ef9fec71b36 Mon Sep 17 00:00:00 2001
From: Yerzhan Zhamashev <yerzhan at novel.systems>
Date: Wed, 21 Jan 2026 16:35:08 +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..ba45aee156bd5 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