summaryrefslogtreecommitdiff
path: root/wasm2c
diff options
context:
space:
mode:
authorBen Smith <binji@chromium.org>2020-07-15 11:53:48 -0700
committerGitHub <noreply@github.com>2020-07-15 11:53:48 -0700
commit3e8b0bb489d63f0a211e00c7de3b629410aa3c08 (patch)
tree8fad7320e433c3b57a9674e652e0e672b4b76464 /wasm2c
parent7c88424c98f157d375458fe6b2cd392959d7d217 (diff)
downloadwabt-3e8b0bb489d63f0a211e00c7de3b629410aa3c08.tar.gz
wabt-3e8b0bb489d63f0a211e00c7de3b629410aa3c08.tar.bz2
wabt-3e8b0bb489d63f0a211e00c7de3b629410aa3c08.zip
[wasm2c] Disable signal handling on 32-bit archs (#1483)
Diffstat (limited to 'wasm2c')
-rw-r--r--wasm2c/wasm-rt.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/wasm2c/wasm-rt.h b/wasm2c/wasm-rt.h
index a44e8220..dcf3e086 100644
--- a/wasm2c/wasm-rt.h
+++ b/wasm2c/wasm-rt.h
@@ -45,7 +45,11 @@ extern "C" {
#if WASM_RT_MEMCHECK_SIGNAL_HANDLER
#if defined(__linux__) || defined(__unix__) || defined(__APPLE__)
+#if defined(__WORDSIZE) && __WORDSIZE != 64
+#warn "Signal handler is only supported on 64-bit architectures"
+#else
#define WASM_RT_MEMCHECK_SIGNAL_HANDLER_POSIX 1
+#endif
#else
#error "No signal handler implementation for OS!"
#endif