From fe88103ecc9915ab50fa918bb969e88dbb6892e1 Mon Sep 17 00:00:00 2001 From: Kleis Auke Wolthuizen Date: Fri, 20 Mar 2026 14:47:38 +0100 Subject: [PATCH] wasm32: Build and link with `-fwasm-exceptions` See: kleisauke/wasm-vips@a59e5e3e0a5643f8c55a2ef5712225c0364bd1ff --- src/binding.gyp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/binding.gyp b/src/binding.gyp index 4c5d2a0bc..8ab773ec3 100644 --- a/src/binding.gyp +++ b/src/binding.gyp @@ -205,9 +205,12 @@ }], ['OS == "emscripten"', { 'product_extension': 'node.js', + 'cflags_cc': [ + '-fwasm-exceptions' + ], 'link_settings': { 'ldflags': [ - '-fexceptions', + '-fwasm-exceptions', '--pre-js=