Bug 1920949: Fix patch for signal handling for WASI to fdlibm. r=jandem DONTBUILD

Differential Revision: https://phabricator.services.mozilla.com/D223483
This commit is contained in:
Bob Owen 2024-09-25 11:34:35 +00:00
parent 041c2efdf3
commit 7a7016cbb0

View File

@ -6,7 +6,7 @@ index b588a59..dad6b01 100644
#ifdef DEBUG
#if defined(__amd64__) || defined(__i386__)
#define breakpoint() asm("int $3")
+#elif defined(__wasi__)
+#elif defined(__wasm__)
+#define breakpoint() __builtin_trap()
#else
#include <signal.h>