mirror of https://github.com/WebAssembly/wasi-sdk
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
937 B
29 lines
937 B
diff --git a/libunwind/src/assembly.h b/libunwind/src/assembly.h
|
|
index f8e83e138eff..c5097d25b0c6 100644
|
|
--- a/libunwind/src/assembly.h
|
|
+++ b/libunwind/src/assembly.h
|
|
@@ -249,6 +249,9 @@ aliasname: \
|
|
#define WEAK_ALIAS(name, aliasname)
|
|
#define NO_EXEC_STACK_DIRECTIVE
|
|
|
|
+#elif defined(__wasm__)
|
|
+#define NO_EXEC_STACK_DIRECTIVE
|
|
+
|
|
// clang-format on
|
|
#else
|
|
|
|
diff --git a/libunwind/src/config.h b/libunwind/src/config.h
|
|
index deb5a4d4d73d..23c9f012cbcf 100644
|
|
--- a/libunwind/src/config.h
|
|
+++ b/libunwind/src/config.h
|
|
@@ -66,7 +66,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
|