From a81f896ec17b5bfe2910ec2ae889e21dd5ee7314 Mon Sep 17 00:00:00 2001 From: Quadtree Date: Tue, 16 Feb 2021 01:04:44 -0800 Subject: [PATCH] Add cwrap to EXTRA_EXPORTED_RUNTIME_METHODS (cherry picked from commit d2c34e83b5851e9290e20ef383409a3c5adc16d6) --- platform/javascript/detect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/javascript/detect.py b/platform/javascript/detect.py index 149033d4375..a6563ff26c1 100644 --- a/platform/javascript/detect.py +++ b/platform/javascript/detect.py @@ -227,7 +227,7 @@ def configure(env): env.Append(LINKFLAGS=["-s", "OFFSCREEN_FRAMEBUFFER=1"]) # callMain for manual start. - env.Append(LINKFLAGS=["-s", "EXTRA_EXPORTED_RUNTIME_METHODS=['callMain']"]) + env.Append(LINKFLAGS=["-s", "EXTRA_EXPORTED_RUNTIME_METHODS=['callMain','cwrap']"]) # Add code that allow exiting runtime. env.Append(LINKFLAGS=["-s", "EXIT_RUNTIME=1"])