[clang] [lld] [llvm] Conditionalize use of POSIX features missing on WASI/WebAssembly (PR #92677)

via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 14 17:53:43 PDT 2024


================
@@ -13,8 +13,17 @@
 #include "llvm/Support/Signals.h"
 #include "llvm/Support/thread.h"
 #include <cassert>
+#if !defined(__wasi__)
+#include <csignal>
+#endif
+#if LLVM_ENABLE_THREADS
----------------
whitequark wrote:

I think it actually does work, since I ended up building LLVM always with the `wasm32-wasip1-threads` target, and this is a remnant of an earlier patch.

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


More information about the llvm-commits mailing list