From eabf4bbd67517905b56075f88eac5470dc2ebd39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Mon, 22 Jul 2019 13:04:41 +0200 Subject: [PATCH] Emscripten: Do not define BINARYEN_TRAP_MODE='clamp' It is not supported in Emscripten's `latest-upstream` LLVM backend, and doesn't seem necessary in the `latest` backend either. It was initially added in #22857 to solve a compilation error with the latter. Part of #30270. (cherry picked from commit 63544e6b02e42935b9f23ade6ff14a6731abe72d) --- platform/javascript/detect.py | 1 - 1 file changed, 1 deletion(-) diff --git a/platform/javascript/detect.py b/platform/javascript/detect.py index 4564bacaa3f..d0a198e2b5e 100644 --- a/platform/javascript/detect.py +++ b/platform/javascript/detect.py @@ -124,7 +124,6 @@ def configure(env): env.Append(LIBS=['idbfs.js']) env.Append(LINKFLAGS=['-s', 'BINARYEN=1']) - env.Append(LINKFLAGS=['-s', 'BINARYEN_TRAP_MODE=\'clamp\'']) # Allow increasing memory buffer size during runtime. This is efficient # when using WebAssembly (in comparison to asm.js) and works well for