From 7e8337e4c93c5f59e5d6956a848de1229dbd847f Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Sat, 20 May 2023 10:07:45 -0700 Subject: [PATCH] Progress on exception catching --- tools/platforms/EmscriptenPlatform.hx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/platforms/EmscriptenPlatform.hx b/tools/platforms/EmscriptenPlatform.hx index 24d37efc5..ce1e82414 100644 --- a/tools/platforms/EmscriptenPlatform.hx +++ b/tools/platforms/EmscriptenPlatform.hx @@ -191,13 +191,13 @@ class EmscriptenPlatform extends PlatformTarget if (project.targetFlags.exists("final")) { args.push("-s"); - args.push("DISABLE_EXCEPTION_CATCHING=0"); + args.push("DISABLE_EXCEPTION_CATCHING=1"); args.push("-O3"); } else if (!project.debug) { args.push("-s"); - args.push("DISABLE_EXCEPTION_CATCHING=0"); + args.push("DISABLE_EXCEPTION_CATCHING=1"); // args.push ("-s"); // args.push ("OUTLINING_LIMIT=70000"); args.push("-O2"); @@ -205,7 +205,9 @@ class EmscriptenPlatform extends PlatformTarget else { args.push("-s"); - args.push("DISABLE_EXCEPTION_CATCHING=2"); + args.push("DISABLE_EXCEPTION_CATCHING=0"); + args.push("-s"); + args.push("NO_DISABLE_EXCEPTION_CATCHING=1"); args.push("-s"); args.push("ASSERTIONS=1"); args.push("-O1");