[clang] [lld] [llvm] Conditionalize use of POSIX features missing on WASI/WebAssembly (PR #92677)
James Y Knight via cfe-commits
cfe-commits at lists.llvm.org
Sun Jul 14 17:37:32 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
----------------
jyknight wrote:
This is unfortunate; there's no reason (in theory) that mutex shouldn't work fine in single-threaded mode.
https://github.com/llvm/llvm-project/pull/92677
More information about the cfe-commits
mailing list