summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuadtree <quadtree@gmail.com>2021-02-16 01:04:44 -0800
committerQuadtree <quadtree@gmail.com>2021-02-16 01:04:44 -0800
commitd2c34e83b5851e9290e20ef383409a3c5adc16d6 (patch)
treeedc9739c715f507971dc53495782d1e6a19b49e1
parent866cad9767222e70f802b24e930b606e8f0bef62 (diff)
Add cwrap to EXTRA_EXPORTED_RUNTIME_METHODS
-rw-r--r--platform/javascript/detect.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/javascript/detect.py b/platform/javascript/detect.py
index 653d18f791..06f88dc83f 100644
--- a/platform/javascript/detect.py
+++ b/platform/javascript/detect.py
@@ -229,7 +229,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"])