[clang] [libunwind] [libunwind][WebAssembly] Make libunwind compilable (PR #92192)

Heejin Ahn via cfe-commits cfe-commits at lists.llvm.org
Fri May 17 12:35:00 PDT 2024


================
@@ -20,7 +20,7 @@
   .text
 #endif
 
-#if !defined(__USING_SJLJ_EXCEPTIONS__)
+#if !defined(__USING_SJLJ_EXCEPTIONS__) && !defined(__wasm__)
----------------
aheejin wrote:

`__wasm__` is defined whenever we compile the code to wasm, and `__USING_WASM_EXCEPTIONS__` is defined when we compile the code to wasm and use Wasm exceptions (`-fwasm-exeptions`). And this code should be excluded whenever it is compiled to wasm, even if `-fwasm-exceptions` is not used.

https://github.com/llvm/llvm-project/pull/92192


More information about the cfe-commits mailing list